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 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘