android - No signature of method: java.lang.Boolean.call()
巴扎黑
巴扎黑 2017-04-18 09:06:32
0
1
1455

项目从 eclipse 导入 android studio中出现这个问题, AS2.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)

project 的 gradle 脚本

apply plugin: 'com.android.library'

android {
    compileSdkVersion 19
    buildToolsVersion "25.0.2"
    enforceUniquePackageName = false 
    aaptOptions{
        cruncherEnabled = false
        useNewCruncher = false
    }
    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 21
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile project(':someLib')
    compile files('libs/Authentication_agent32.jar')
}

巴扎黑
巴扎黑

membalas semua(1)
Ty80

Diselesaikan buat sementara waktu, ia adalah masalah yang disebabkan oleh imej .9 Ubah suai semua imej .9 dan kompilasi itu berjaya, tetapi ia tidak merasakan punca masalah itu

Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan