android – 无法构建应用程序错误:执行失败的任务’:app:package“packageName”Debug“. >值(73836)> 0x0000ffff

前端之家收集整理的这篇文章主要介绍了android – 无法构建应用程序错误:执行失败的任务’:app:package“packageName”Debug“. >值(73836)> 0x0000ffff前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
无法建立应用程式

构建失败:

Error:Execution Failed for task ':app:package "packageName" Debug'.> value (73836) > 0x0000ffff

该项目建立成功,但添加一行代码(Log.i())
接收失败的构建消息,重新启动(无效缓存)按预期工作

gradle这个-wrapper.properites

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip

这里是我的build.gradle文件

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'

defaultConfig {

    minSdkVersion 16
    targetSdkVersion 23
    versionCode 1
    versionName '1.0'
    renderscriptTargetApi 23
    renderscriptSupportModeEnabled true
    multiDexEnabled true

}

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

    }
}


packagingOptions {
    exclude 'Meta-INF/DEPENDENCIES.txt'
    exclude 'Meta-INF/DEPENDENCIES'
    exclude 'Meta-INF/dependencies.txt'
    exclude 'Meta-INF/LICENSE.txt'
    exclude 'Meta-INF/LICENSE'
    exclude 'Meta-INF/license.txt'
    exclude 'Meta-INF/LGPL2.1'
    exclude 'Meta-INF/NOTICE.txt'
    exclude 'Meta-INF/NOTICE'
    exclude 'Meta-INF/notice.txt'
}
useLibrary 'org.apache.http.legacy'
}

dependencies {
compile files('libs/adobeMobileLibrary.jar')
compile 'org.twitter4j:twitter4j-core:4.0.4'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.facebook.android:facebook-android-sdk:4.8.1'
compile 'com.google.code.gson:gson:2.4'
compile 'com.daimajia.swipelayout:library:1.2.0@aar'
compile 'com.android.support:design:23.2.0'
compile 'com.android.support:percent:23.2.0'
compile 'com.squareup.okhttp3:okhttp:3.0.0-RC1'
compile 'com.squareup.okio:okio:1.6.0'
}

解决方法

androidstudio1.5 gradle 2.2.0-alpha,发生在我这样的问题;将渐变固定为1.5.0;然后解决
原文链接:https://www.f2er.com/android/311973.html

猜你在找的Android相关文章