我已经将一个项目从eclipse导入到android studio中,我遇到了这个问题
,android studio 2.2.2,gradle 2.2.2。
Error:(6, 1) A problem occurred evaluating project ':projectName'.
No signature of method: java.lang.Boolean.call() is applicable for argument types: (null) values: [null]
Possible solutions: wError:(6, 1) A problem occurred evaluating project ':projectName'.
No signature of method: java.lang.Boolean.call() is applicable for argument types: (null) values: [null]
Possible solutions: wait(), any(), wait(long), any(groovy.lang.Closure), each(groovy.lang.Closure), and(java.lang.Boolean)ait(), any(), wait(long), any(groovy.lang.Closure), each(groovy.lang.Closure), and(java.lang.Boolean)
项目gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "25.0.2"
enforceUniquePackageName = false
aaptOptions{
cruncherEnabled = false
useNewCruncher = false
}
defaultConfig {
applicationId "com.zl.activity"
minSdkVersion 14
targetSdkVersion 14
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':someLib')
compile files('libs/Authentication_agent32.jar')
}
最佳答案
问题解决了。它是由 9-patch 引起的,只需修复照片,现在一切都OK。
关于java - gradle 2.2.2,android studio,没有方法签名:java.lang.Boolean.call()适用于参数类型:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42267153/