android-studio - 错误 :Execution failed for task ':app:transformClassesWithDexForOfficialRelease' . > 无法在空对象上调用方法 getMainManifest()

标签 android-studio gradle

当我在 Android Studio 的发布 channel 上运行它时会发生这种情况。

我的一部分在这里:

android {

    compileSdkVersion 23
    buildToolsVersion "23.0.3"
    defaultConfig {
        applicationId "com.inst.instcallcar"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.00"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }

    productFlavors {
        official {
            ndk {
                abiFilter "armeabi"
            }
        }
    }

    buildTypes {
        debug {
            signingConfig signingConfigs.sign
        }

        release {
            minifyEnabled true
            shrinkResources true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.sign
        }
    }
}

我使用 gradle 版本 1.14.1、3.1 和 3.2 对其进行了测试,但它不起作用。

最佳答案

这是这个问题的结果:ThinRPlugin#2

我删除ThinRPlugin因为那个问题还没有解决。

现在好了。

关于android-studio - 错误 :Execution failed for task ':app:transformClassesWithDexForOfficialRelease' . > 无法在空对象上调用方法 getMainManifest(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40626296/

相关文章:

gradle - 如何使用单个 build.gradle 配置向 kotlin 多平台项目添加依赖项

android - IntelliJ - Android 项目 - Gradle 刷新失败

java - 应用程序未安装!从 android studio build 安装 apk 时出错

Android Studio - Gradle 增量构建

android-studio - 停止在 Android Studio 中覆盖我的编辑器的弹出警告

java - 我怎样才能让 gradle 覆盖我本地 maven 仓库中的库?

android - 使用 Android Studio 生成 Pro Guard 配置文件

android - 将库项目作为依赖项添加到另一个库项目

android - 如何接受Android Studio SDK许可?

android - 任务dexBuilderForDebug的执行失败