Gradle could not synchronize: the argument for @NotNull 'aFileName' from com / intellij / openapi / util / io / FileUtil.toSystemIndependentName should not be null

I imported my project in Android Studio 1.3.2and now it shows an error

Gradle sync started
Gradle sync failed: Argument for @NotNull parameter 'aFileName' of com/intellij/openapi/util/io/FileUtil.toSystemIndependentName must not be null
Gradle sync completed
IllegalArgumentException: Failed to set up Android modules in project 'MaterialTabs': Argument for @NotNull parameter 'aFileName' of com/intellij/openapi/util/io/FileUtil.toSystemIndependentName must not be null

Gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.abc.abcd"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:appcompat-v7:23.0.0'
    compile 'com.android.support:design:23.0.0'
    compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
    compile files('libs/android-query-full.0.24.3.jar')
    compile 'com.google.android.gms:play-services:6.5.87'
}
+4
source share
1 answer

I found a solution to this problem, I just invalidated the cache and restarted it, it worked.

but still, if there is a problem, I suggest trying to change compileSdkVersion from gradle

+4
source

All Articles