BuglyDevTeam / Bugly-Android-Demo

Bugly Android SDK 使用例子
Apache License 2.0
810 stars 307 forks source link

打补丁包时app\build\intermediates\tinker_intermediates\public.txt报错 #231

Open DingJiahua opened 4 years ago

DingJiahua commented 4 years ago

自己按照流程开发的Demo和github下载的Demo运行后打基准包没问题,打补丁包就一直编译报错

异常类型

编译异常

手机型号

华为P30pro

手机系统版本

android 10.0

Tinker版本

1.9.14.3

gradle版本

4.6

系统

Windows 7

堆栈/日志

Executing tasks: [buildTinkerPatchRelease] in project F:\HotUpdate\app

TinkerSupport Plugin Version: 1.2.1 Requires: Android Plugin for Gradle, Revision 2.0.0 or higher Dependencies: Gradle 2.10 or higher (Current Gradle Version: 4.6)

apply plugin: 'com.tencent.tinker.patch' ----------------------tinker build warning ------------------------------------ tinker auto operation: excluding annotation processor and source template from app packaging. Enable dx jumboMode to reduce package size. enable dx jumboMode to reduce package size. disable preDexLibraries to prevent ClassDefNotFoundException when your app is booting. disable archive dex mode so far for keeping dex apply.

tinker will change your build configs: we will add TINKER_ID=null in your build output manifest file build/intermediates/manifests/full/*

if minifyEnabled is true you will find the gen proguard rule file at build/intermediates/tinker_intermediates/tinker_proguard.pro and we will help you to put it in the proguardFiles.

if multiDexEnabled is true you will find the gen multiDexKeepProguard file at build/intermediates/tinker_intermediates/tinker_multidexkeep.pro and we will help you to put it in the MultiDexKeepProguardFile.

if applyResourceMapping file is exist we will build app apk with resource R.txt file if resources.arsc has changed, you should use applyResource mode to build the new apk!

----------------------tinker-support build warning ------------------------------------ if you not set autoBackupApkDir we will auto backup the build file to F:\HotUpdate\app/tinker.

if overrideTinkerPatchConfiguration is true we will override tinker patch configuration��you must use tinker-support's configuration

you will find the gen proguard rule file at build/intermediates/bugly_intermediates/bugly_proguard.pro and we will help you to put it in the proguardFiles.

if enableProxyApplication is true we will replace you real application to TINKER_PATCH_APPLICATION

if autoGenerateTinkerId is true we will auto set base tinkerId as versionName.versionCode, like 1.0.1

------ Tinker Support Override tinkerPatch Configuration ------ tinkerPatch { tinkerEnable = true oldApk = F:\HotUpdate\app\build\bakApk/app-0430-09-13-06/app-release.apk ignoreWarning = false useSign = true buildConfig { applyMapping = F:\HotUpdate\app\build\bakApk/app-0430-09-13-06/app-release-mapping.txt applyResourceMapping = F:\HotUpdate\app\build\bakApk/app-0430-09-13-06/app-release-R.txt tinkerId = Patch-1.0.0 keepDexApply = false isProtectedApp = false supportHotplugComponent = true } dex { dexMode = jar pattern = [classes.dex, assets/secondary-dex-?.jar] loader = [com.tencent.tinker.loader.] } lib { pattern = [lib//.so] } res { pattern = [res/, r/, assets/, resources.arsc, AndroidManifest.xml] ignoreChange = [assets/_meta.txt] largeModSize = 100 } packageConfig { } sevenZip { zipArtiface = com.tencent.mm:SevenZip:1.1.10 path = } ------ End ------ variantName:Debug outputVariantName:Debug variantName:Release outputVariantName:Release :app:checkReleaseClasspath :app:preBuild UP-TO-DATE :app:extractProguardFiles :app:preReleaseBuild :app:compileReleaseAidl NO-SOURCE :app:compileReleaseRenderscript :app:checkReleaseManifest :app:generateReleaseBuildConfig :app:prepareLintJar UP-TO-DATE :app:mainApkListPersistenceRelease :app:generateReleaseResValues :app:generateReleaseResources :app:mergeReleaseResources :app:createReleaseCompatibleScreenManifests :app:processReleaseManifest F:\HotUpdate\app\src\main\AndroidManifest.xml:22:9-25:64 Warning: activity#com.tencent.bugly.beta.ui.BetaActivity@android1:name was tagged at AndroidManifest.xml:22 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml:22:9-25:64 Warning: activity#com.tencent.bugly.beta.ui.BetaActivity@android1:configChanges was tagged at AndroidManifest.xml:22 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml:22:9-25:64 Warning: activity#com.tencent.bugly.beta.ui.BetaActivity@android1:theme was tagged at AndroidManifest.xml:22 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml:27:9-37:20 Warning: provider#com.tencent.bugly.beta.utils.BuglyFileProvider@android1:name was tagged at AndroidManifest.xml:27 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml:27:9-37:20 Warning: provider#com.tencent.bugly.beta.utils.BuglyFileProvider@android1:authorities was tagged at AndroidManifest.xml:27 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml:27:9-37:20 Warning: provider#com.tencent.bugly.beta.utils.BuglyFileProvider@android1:exported was tagged at AndroidManifest.xml:27 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml:27:9-37:20 Warning: provider#com.tencent.bugly.beta.utils.BuglyFileProvider@android1:grantUriPermissions was tagged at AndroidManifest.xml:27 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml Warning: meta-data#android.support.FILE_PROVIDER_PATHS@android1:name was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present F:\HotUpdate\app\src\main\AndroidManifest.xml Warning: meta-data#android.support.FILE_PROVIDER_PATHS@android1:resource was tagged at AndroidManifest.xml:0 to replace other declarations but no other declaration present :app:splitsDiscoveryTaskRelease tinker add tinker_id_Patch-1.0.0 to your AndroidManifest.xml F:\HotUpdate\app\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml tinker add com.example.hotupdate.MyApplication 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 F:\HotUpdate\app\build\bakApk/app-0430-09-13-06/app-release-R.txt :app:tinkerProcessReleaseResourceId manifestPath: F:\HotUpdate\app\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml app version:Test-1.0.0.1 Remove TINKER_ID tinker_id_Patch-1.0.0 tinkerSupport add com.example.hotupdate.MyApplication to dex loader pattern tinkerSupport gen AndroidManifest.xml in build/intermediates/bugly_intermediates/AndroidManifest.xml :app:tinkerSupportProcessReleaseManifest tinker add additionalParameters --stable-ids F:\HotUpdate\app\build\intermediates\tinker_intermediates\public.txt :app:processReleaseResources FAILED

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 20s 17 actionable tasks: 16 executed, 1 up-to-date 上午 11:38:46: Task execution finished 'buildTinkerPatchRelease'.

复现路径

DingJiahua commented 4 years ago

3AFFACA1-F4B5-4e89-82DC-29E81879DBD7 打补丁包到这一步就出错

Domlaa commented 2 years ago

同问 请问解决了嘛