Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行命令tinkerPatchRelease时编译不通过,assembleRelease是正常的。 #454

Closed
yqyzxd opened this issue Apr 25, 2017 · 4 comments

Comments

@yqyzxd
Copy link

yqyzxd commented Apr 25, 2017

异常类型:tinkerPatchRelease编译异常

手机型号:

手机系统版本:

tinker版本:如:1.7.7

gradle版本:如:2.3.0

是否使用热更新SDK:TinkerPatch SDK

系统:如:Mac

堆栈/日志:
tinkerpatch change application name from com.xkd.dinner.App to com.tinkerpatch.sdk.loader.TinkerPatchReflectApplication
:app:tinkerProcessReleaseManifest
tinker add tinker_id_1.0.0 to your AndroidManifest.xml /Users/wind/StudioProjects/Dinner/app/build/intermediates/manifests/full/release/AndroidManifest.xml
tinker add com.tinkerpatch.sdk.loader.TinkerPatchReflectApplication to dex loader pattern
tinker add com.tencent.tinker.loader.* to dex loader pattern
tinker gen AndroidManifest.xml in build/intermediates/tinker_intermediates/AndroidManifest.xml
:app:tinkerProcessReleaseResourceId
we build app apk with apply resource mapping file /Users/wind/StudioProjects/Dinner/app/build/bakApk/app-1.0.0-0425-11-17-21/release/app-release-R.txt
tinker gen resource public.xml in build/intermediates/tinker_intermediates/public.xml
tinker gen resource idx.xml in build/intermediates/tinker_intermediates/idx.xml
:app:processReleaseResources
/Users/wind/StudioProjects/Dinner/app/build/intermediates/res/merged/release/values/public.xml:484: AAPT: Public symbol attr/qupai_originalHeight declared here is not defined.

/Users/wind/StudioProjects/Dinner/app/build/intermediates/res/merged/release/values/public.xml:271: AAPT: Public symbol attr/qupai_originalWidth declared here is not defined.

/Users/wind/StudioProjects/Dinner/app/build/intermediates/res/merged/release/values/public.xml:484: error: Public symbol attr/qupai_originalHeight declared here is not defined.
/Users/wind/StudioProjects/Dinner/app/build/intermediates/res/merged/release/values/public.xml:271: error: Public symbol attr/qupai_originalWidth declared here is not defined.

:app:processReleaseResources FAILED

FAILURE: Build failed with an exception.

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

com.android.ide.common.process.ProcessException: Failed to execute aapt

引入了趣拍短视频库。

@shwenzhang
Copy link
Contributor

/Users/wind/StudioProjects/Dinner/app/build/intermediates/res/merged/release/values/public.xml:484: error: Public symbol attr/qupai_originalHeight declared here is not defined.
/Users/wind/StudioProjects/Dinner/app/build/intermediates/res/merged/release/values/public.xml:271: error: Public symbol attr/qupai_originalWidth declared here is not defined.

@yqyzxd
Copy link
Author

yqyzxd commented Apr 25, 2017

在public.xml文件中的值

<public type="attr" name="qupai_originalHeight" id="0x7f010105" />
<public type="attr" name="qupai_originalWidth" id="0x7f010104" />

android中可以引用到这个值

R.styleable.qupai_AspectRatioLayout_qupai_originalHeight

@shwenzhang
Copy link
Contributor

fixed with 1.7.9

@tysheng
Copy link

tysheng commented May 7, 2017

:app:processDevelopmentReleaseResourcesAGPBI: {"kind":"error","text":"Public symbol attr/qupai_originalHeight declared here is not defined.","sources":[{"file":"/Users/shengtianyang/Desktop/Eforums2/app/build/intermediates/data-binding-layout-out/development/release/values/public.xml","position":{"startLine":163}}],"original":"","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Public symbol attr/qupai_originalWidth declared here is not defined.","sources":[{"file":"/Users/shengtianyang/Desktop/Eforums2/app/build/intermediates/data-binding-layout-out/development/release/values/public.xml","position":{"startLine":265}}],"original":"","tool":"AAPT"}
/Users/shengtianyang/Desktop/Eforums2/app/build/intermediates/data-binding-layout-out/development/release/values/public.xml:164: error: Public symbol attr/qupai_originalHeight declared here is not defined.
/Users/shengtianyang/Desktop/Eforums2/app/build/intermediates/data-binding-layout-out/development/release/values/public.xml:266: error: Public symbol attr/qupai_originalWidth declared here is not defined.

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDevelopmentReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

bugly 1.3.0,也就是tinker 1.7.9,貌似还是有这个问题
@shwenzhang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants