本文介绍了Gradle同步失败:com/intellij/openapi/util/io/FileUtil.toSystemIndependentName的@NotNull参数'aFileName'的参数不能为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将项目导入到Android Studio 1.3.2
,现在显示错误
I imported my project to Android Studio 1.3.2
and now it is showing 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'
}
推荐答案
我找到了解决此问题的方法,我只是使缓存无效并重新启动它就可以了.
I found the solution for this issue,i just did invalidate cache and restart it, it worked.
但仍然存在问题,我建议尝试从gradle更改compileSdkVersion
but still if there is issue i suggest try to change compileSdkVersion from gradle
这篇关于Gradle同步失败:com/intellij/openapi/util/io/FileUtil.toSystemIndependentName的@NotNull参数'aFileName'的参数不能为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!