android - No signature of method: java.lang.Boolean.call()

 sen0226714 发布于 2022-11-02 05:14

项目从 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')
}

1 个回答
  • 暂时解决了,是 .9 图片引发的问题 ,修改掉所有 .9 图片编译成功,但感觉不是问题的根本原因

    2022-11-12 01:54 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有