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.
What went wrong:
Execution failed for task ':app:processReleaseResources'.
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.
自己按照流程开发的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.
What went wrong: Execution failed for task ':app:processReleaseResources'.
Command: C:\Users\DJH.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\53a9080e70f451b7b761fe955cfe724a\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\ D:\Android\Sdk\platforms\android-28\android.jar\ --manifest\ F:\HotUpdate\app\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml\ -o\ F:\HotUpdate\app\build\intermediates\processedres\release\processReleaseResources\out\resources-release.ap\ -R\ @F:\HotUpdate\app\build\intermediates\incremental\processReleaseResources\resources-list-for-resources-release.ap_.txt\ --auto-add-overlay\ --java\ F:\HotUpdate\app\build\generated\not_namespaced_r_class_sources\release\processReleaseResources\r\ --proguard\ F:\HotUpdate\app\build\intermediates\proguard-rules\release\aapt_rules.txt\ --proguard-main-dex\ F:\HotUpdate\app\build\intermediates\legacy_multidex_aapt_derived_proguard_rules\release\processReleaseResources\manifest_keep.txt\ --custom-package\ com.example.hotupdate\ -0\ apk\ --stable-ids\ F:\HotUpdate\app\build\intermediates\tinker_intermediates\public.txt\ --output-text-symbols\ F:\HotUpdate\app\build\intermediates\symbols\release\R.txt\ --no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0 Output: F:\HotUpdate\app\build\intermediates\tinker_intermediates\public.txt:1: AAPT: error: invalid resource name 'b#eA? E-SafeNet LOCK ?K^�C-?gWn�m ��Z�d��ߑ^z��`?��-??8u��v́
���^~��K�~6�����kQ?%D@�A�W��?+?>l?F�N���0?<?$+���C��O+��H|�\�hU_������C�U�s�m;���?
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
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'.
复现路径