TinkerPatch / tinkerpatch-sdk

TinkerPatch SDK
http://tinkerpatch.com
MIT License
294 stars 56 forks source link

使用aapt2打release包之后无法打补丁包 #100

Open tiDeKK opened 6 years ago

tiDeKK commented 6 years ago

日志如下: tinker add tinker_id_patch-d-2.3.5-1 to your AndroidManifest.xml /Users/jingguo/Documents/AndroidProject/Cardiochina_doctor/app/build/intermediates/manifests/full/release/AndroidManifest.xml tinker add com.cardiochina.doctor.application.HotFixBaseApplication to dex loader pattern tinker gen AndroidManifest.xml in build/intermediates/tinker_intermediates/AndroidManifest.xml :app:tinkerProcessReleaseManifest we build app apk with apply resource mapping file /Users/jingguo/Documents/AndroidProject/Cardiochina_doctor/app/build/bakApk/app-0813-09-06-11-d-v2.3.5/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:tinkerProcessReleaseResourceId manifestPath: /Users/jingguo/Documents/AndroidProject/Cardiochina_doctor/app/build/intermediates/manifests/full/release/AndroidManifest.xml app version:2.3.5.130 Remove TINKER_ID tinker_id_patch-d-2.3.5-1 tinkerSupport add com.cardiochina.doctor.application.HotFixBaseApplication to dex loader pattern tinkerSupport gen AndroidManifest.xml in build/intermediates/bugly_intermediates/AndroidManifest.xml :app:tinkerSupportProcessReleaseManifest :app:processReleaseResources First type is not attr! A/ ( 6615): First type is not attr! :app:processReleaseResources FAILED

FAILURE: Build failed with an exception.

BUILD FAILED in 39s 121 actionable tasks: 5 executed, 116 up-to-date 上午10:43:51: Task execution finished 'buildTinkerPatchRelease'.

请问有人遇到过类似的问题吗?

simpleton commented 6 years ago

不好意思,暂时还没有兼容aapt2。

On Mon, Aug 13, 2018 at 8:18 PM tiDeKK notifications@github.com wrote:

日志如下: tinker add tinker_id_patch-d-2.3.5-1 to your AndroidManifest.xml /Users/jingguo/Documents/AndroidProject/Cardiochina_doctor/app/build/intermediates/manifests/full/release/AndroidManifest.xml tinker add com.cardiochina.doctor.application.HotFixBaseApplication to dex loader pattern tinker gen AndroidManifest.xml in build/intermediates/tinker_intermediates/AndroidManifest.xml :app:tinkerProcessReleaseManifest we build app apk with apply resource mapping file /Users/jingguo/Documents/AndroidProject/Cardiochina_doctor/app/build/bakApk/app-0813-09-06-11-d-v2.3.5/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:tinkerProcessReleaseResourceId manifestPath: /Users/jingguo/Documents/AndroidProject/Cardiochina_doctor/app/build/intermediates/manifests/full/release/AndroidManifest.xml app version:2.3.5.130 Remove TINKER_ID tinker_id_patch-d-2.3.5-1 tinkerSupport add com.cardiochina.doctor.application.HotFixBaseApplication to dex loader pattern tinkerSupport gen AndroidManifest.xml in build/intermediates/bugly_intermediates/AndroidManifest.xml :app:tinkerSupportProcessReleaseManifest :app:processReleaseResources First type is not attr! A/ ( 6615): First type is not attr! :app:processReleaseResources FAILED

FAILURE: Build failed with an exception.

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

Failed to process resources, see aapt output above for details.

-

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

Get more help at https://help.gradle.org

BUILD FAILED in 39s 121 actionable tasks: 5 executed, 116 up-to-date 上午10:43:51: Task execution finished 'buildTinkerPatchRelease'.

请问有人遇到过类似的问题吗?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TinkerPatch/tinkerpatch-sdk/issues/100, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbvYmrS8XEJEfMccUdXr6b79o4yjKECks5uQkGEgaJpZM4V7ung .