Open zhjunvj opened 3 years ago
lib里面有没有.so文件?
有.so文件 ,so文件要怎么处理?
在清单文件的application中加入android:extractNativeLibs="true",试一下。
好,我试试
可以了 谢谢 !@wanwenju
不客气,感兴趣的话可以看一下这个文章,https://www.jianshu.com/p/9a75aeb47ab1,原因应该和这个库的打包原理有关系,加固的APk都可能遇见这个问题。
好 我看看 @wanwenju
下午4:58:36: Executing task 'resguardRelease'...
Executing tasks: [resguardRelease] in project /Project/wxrun
-->AndResGuard starting! Current thread# id: 1749, name: Execution worker for ':' Thread 4 unziping apk to /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp decoding resources.arsc parse to get the exist names in the resouces.arsc first reading packagename com.jingling.liuliang.wifi resources mapping file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/resource_mapping_app-release.txt done resources filter mapping file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/merge_duplicated_res_mapping_app-release.txt done writing new resources.arsc resources.arsc Character Encoding: utf-8 String pool size: 1625 [AndResGuard] buildApk signatureType: SchemaV2 General unsigned apk: app-release_unsigned.apk add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.activity_activity.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.appcompat_appcompat-resources.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.appcompat_appcompat.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.arch.core_core-runtime.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.asynclayoutinflater_asynclayoutinflater.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.coordinatorlayout_coordinatorlayout.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.core_core.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.cursoradapter_cursoradapter.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.customview_customview.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.documentfile_documentfile.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.drawerlayout_drawerlayout.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.exifinterface_exifinterface.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.fragment_fragment.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.interpolator_interpolator.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.legacy_legacy-support-core-ui.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.legacy_legacy-support-core-utils.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.legacy_legacy-support-v4.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.lifecycle_lifecycle-livedata-core.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.lifecycle_lifecycle-livedata.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.lifecycle_lifecycle-runtime.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.lifecycle_lifecycle-viewmodel.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.loader_loader.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.media_media.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.print_print.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.recyclerview_recyclerview.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.savedstate_savedstate.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.slidingpanelayout_slidingpanelayout.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.swiperefreshlayout_swiperefreshlayout.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.vectordrawable_vectordrawable-animated.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.vectordrawable_vectordrawable.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.versionedparcelable_versionedparcelable.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/androidx.viewpager_viewpager.version add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/kotlin-stdlib-common.kotlin_module add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/kotlin-stdlib.kotlin_module add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/okhttp.kotlin_module add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/okio.kotlin_module add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/push.properties add meta file /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/temp/META-INF/retrofit.kotlin_module DestResDir 1412 rawResDir 1441 use 7zip to repackage: app-release_7zip_unsigned.apk, will cost much more time [addStoredFileIn7Zip]rewrite the stored file into the 7zip, file count: 27 zipaligning apk: /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release/app-release_7zip_unsigned.apk, exists:true signing apk: app-release_7zip_aligned_signed.apk Backup Final APk(V2) to /Project/wxrun/app/build/outputs/apk/release/app-release.apk <--AndResGuard Done! You can find the output in /Project/wxrun/app/build/outputs/apk/release/AndResGuard_app-release
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m 33s 65 actionable tasks: 65 executed 下午5:00:10: Task execution finished 'resguardRelease'.