添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
dianshanglaosan 2015-11-30 06:36
浏览 8188

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:
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').

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

  • 编辑 收藏 删除 结题
  • 追加酬金 (90%的用户在追加酬金后获得了解决方案)

    当前问题酬金

    ¥ 0 (可追加 ¥500)

    支付方式

    余额支付

    余额: ¥ 499

    扫码支付

    提供问题酬金的用户不参与问题酬金结算和分配

    支付即为同意 《付费问题酬金结算规则》

    0 条回答 默认 最新

    查看更多回答(-1条) 报告相同问题?

    悬赏问题

    • ¥20 写一个基于52单片机用hc-05蓝牙模块控制28BYJ-48步进电机进行旋转,在手机蓝牙串口输入1019电机转半圈,输入2038电机转一圈,输入0复位的代码吗 求51单片机8位数码管计时器程序 matlab识别螺母边缘 python 6x6游戏加登录、记录系统 基于做一个模拟智慧路灯 ME21N 创建采购成功并且生成采购订单号,但显示“快件文档更新已取消”,SM13看错误提示为如下截图: android 集成fmod实现变声功能中遇到的问题 关于#matlab#的问题,如何解决?