dianshanglaosan 2015-11-30 06:36
浏览 8292

Android studio 混淆打包报错了

先运行gradlew clean,没有问题。
再运行gradlew assembleRelease 就报了下面的错:

Warning: D:\deve\Adrich\AndroidManifest.xml:23:5 Warning:
application@android:icon was tagged at AndroidManifest.xml:23 to replace other declarations but no other declaration present
Warning: D:\deve\Adrich\AndroidManifest.xml:23:5 Warning:
application@android:theme was tagged at AndroidManifest.xml:23 to replace other declarations but no other declaration present
D:\deve\Adrich\AndroidManifest.xml:23:5 Warning:
application@android:icon was tagged at AndroidManifest.xml:23 to replace other declarations but no other declaration present
D:\deve\Adrich\AndroidManifest.xml:23:5 Warning:
application@android:theme was tagged at AndroidManifest.xml:23 to replace other declarations but no other declaration present
:Adrich:processReleaseResources
D:\deve\Adrich\build\intermediates\res\release\layout\recharge1_activity.xml:100: error: Error: No resource found that matches the given name (at 'background' with value '@color/white').
D:\deve\Adrich\build\intermediates\res\release\layout\recharge2_activity.xml:52: error: Error: No resource found that matches the given name (at 'background' with value '@color/white').
D:\deve\Adrich\build\intermediates\res\release\layout\recharge2_activity.xml:74: error: Error: No resource found that matches the given name (at 'background' with value '@color/white').
:Adrich:processReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':Adrich:processReleaseResources'.

    com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    D:\android\adt-bundle-windows-x86_64-20140702\sdk\build-tools\android-4.4W\aapt.exe package -f --no-crunch -I D:\android\adt-bundle-windows-x86_64-20140702\sdk\platforms\android-19\android.jar -M D:\deve\Adrich\build\intermediates\manifests\full\release\AndroidManifest.xml -S D:\deve\Adrich\build\intermediates\res\release -A D:\deve\Adrich\build\intermediates\assets\release -m -J D:\deve\Adrich\build\generated\source\r\release -F D:\deve\Adrich\build\intermediates\res\resources-release.ap_ -G D:\deve\Adrich\build\intermediates\proguard-rules\release\aapt_rules.txt --custom-package com.adrich.adrich -0 apk --output-text-symbols D:\deve\Adrich\build\intermediates\symbols\release
    Error Code:
    1
    Output:
    D:\deve\Adrich\build\intermediates\res\release\layout\recharge1_activity.xml:100: error: Error: No resource found that matches the given name (at 'background' with value '@color/white').
    D:\deve\Adrich\build\intermediates\res\release\layout\recharge2_activity.xml:52: error: Error: No resource found that matches the given name (at 'background' with value '@color/white').
    D:\deve\Adrich\build\intermediates\res\release\layout\recharge2_activity.xml:74: error: Error: No resource found that matches the given name (at 'background' with value '@color/white').

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 2 mins 3.648 secs

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 安卓adb backup备份应用数据失败
    • ¥15 eclipse运行项目时遇到的问题
    • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
    • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
    • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
    • ¥50 成都蓉城足球俱乐部小程序抢票
    • ¥15 yolov7训练自己的数据集
    • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
    • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
    • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)