mirror of
https://gitea.winboll.cc/Studio/WinBoLL.git
synced 2026-08-14 05:27:10 +08:00
fix(project): 启用AndroidX修复libaes依赖导致的运行时闪退
libaes:15.20.21 AAR内部编译了androidx.*类引用, android.enableJetifier=false导致运行时ClassNotFoundException闪退, 且无异常日志(DEX层错误,UncaughtExceptionHandler无法捕获) - gradle.properties: 启用android.useAndroidX和android.enableJetifier - appbase/build.gradle: appcompat依赖迁移至androidx.appcompat:appcompat:1.3.1
This commit is contained in:
@@ -52,7 +52,7 @@ dependencies {
|
||||
// WinBoLL库 nexus.winboll.cc 地址
|
||||
//api 'cc.winboll.studio:libappbase:15.20.+'
|
||||
api 'cc.winboll.studio:libaes:15.20.21'
|
||||
api 'com.android.support:appcompat-v7:28.0.0'
|
||||
api 'androidx.appcompat:appcompat:1.3.1'
|
||||
|
||||
api fileTree(dir: 'libs', include: ['*.jar'])
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Tue Jul 21 16:20:53 HKT 2026
|
||||
#Tue Jul 21 17:05:50 HKT 2026
|
||||
stageCount=4
|
||||
libraryProject=libappbase
|
||||
baseVersion=15.21
|
||||
publishVersion=15.21.3
|
||||
buildCount=3
|
||||
buildCount=6
|
||||
baseBetaVersion=15.21.4
|
||||
|
||||
+2
-2
@@ -14,9 +14,9 @@ org.gradle.jvmargs=-Xmx2048m
|
||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||
# Android operating system, and which are packaged with your app"s APK
|
||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||
android.useAndroidX=false
|
||||
android.useAndroidX=true
|
||||
# Automatically convert third-party libraries to use AndroidX
|
||||
android.enableJetifier=false
|
||||
android.enableJetifier=true
|
||||
# 保持与旧版Gradle插件的兼容
|
||||
android.disableAutomaticComponentCreation=true
|
||||
#org.gradle.daemon=false
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#Created by .winboll/winboll_app_build.gradle
|
||||
#Tue Jul 21 16:20:53 HKT 2026
|
||||
#Tue Jul 21 17:05:50 HKT 2026
|
||||
stageCount=4
|
||||
libraryProject=libappbase
|
||||
baseVersion=15.21
|
||||
publishVersion=15.21.3
|
||||
buildCount=3
|
||||
buildCount=6
|
||||
baseBetaVersion=15.21.4
|
||||
|
||||
Reference in New Issue
Block a user