android - 在 Android Studio 中将 Apk 转换为 64 位的任何解决方案,请举例
问题描述
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.alifbaataa.madniqaida.madaniqaidahpro"
minSdkVersion 16
targetSdkVersion 29
multiDexEnabled true
versionCode 79
versionName '13.11.24'
ndk {
abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
}
ndk {
abiFilters = []
abiFilters.addAll(PROP_APP_ABI.split(':').collect {it as String})
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
//noinspection GradleCompatible
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.vectordrawable:vectordrawable:1.0.0'
implementation 'androidx.navigation:navigation-fragment:2.0.0-rc02'
implementation 'androidx.navigation:navigation-ui:2.0.0-rc02'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'com.google.firebase:firebase-storage:16.0.4'
implementation 'com.google.firebase:firebase-auth:16.0.5'
implementation 'com.google.firebase:firebase-database:16.0.4'
implementation 'com.google.firebase:firebase-firestore:17.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.github.carlosmuvi:SegmentedProgressBar:0.6.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.github.varunest:sparkbutton:1.0.6'
implementation 'com.github.lzyzsd:circleprogress:1.2.1'
implementation 'com.bcgdv.asia.lib:ticktock:1.3'
implementation 'com.akexorcist:RoundCornerProgressBar:2.0.3'
implementation 'com.github.mjn1369:prettydialog:1.0.4'
implementation 'com.github.panwrona:DownloadProgressBar:1.1'
implementation 'com.mindorks.android:prdownloader:0.4.0'
implementation 'com.henryblue.mxvideoplayer:xvideoplayer:1.2.0'
implementation 'com.anjlab.android.iab.v3:library:1.0.44'
implementation 'com.sackcentury:shinebutton:0.2.0'
implementation 'com.facebook.shimmer:shimmer:0.4.0'
implementation 'androidx.multidex:multidex:2.0.0'
}
我该如何解决这个问题并转换为 64 位?
解决方案
你分析你的apk了吗?不是64位的吗?如果不是,有两种方法可以将 apk 转换为 64 位。首先你在这个 build.gradle 文件中做了。您已经进行了正确的更改,但如果您的 APK 仍然不是 64 位的,那么这意味着您正在使用一些仅支持 32 位的库。因此,请从您在项目中使用的 3rd 方库中读取文档和跟踪,替换或修改它们以使其支持 64 位架构
推荐阅读
- javascript - 在 Discord.js 中添加角色
- xaml - Xamarin 表单中的矩形不支持 HeightRequest
- javascript - 如何在颤振中导入平台特定文件?
- sql - SQL查询更改列名
- java - Uri.Builder 用逗号附加一些东西作为查询参数
- c# - Windows 如何定位 Chrome
- java - https://spring.io/guides/gs/sumption-rest/ 使用 RESTful Web 服务
- c# - 消息=')' 附近的语法不正确。Source=Core .Net SqlClient 数据提供者
- odbc - Power BI ODBC - 如何选择架构
- java - 在 JSch 频道上运行脚本,但在找不到脚本时不会抛出异常