打64位包,Android gradle文件中改成如下:```javascript
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
安装运行,启动页或者广告页闪退
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.15.7
HBuilderX类型: 正式
HBuilderX版本号: 3.2.16
手机系统: Android
手机系统版本号: Android 10
手机厂商: vivo
手机机型: V203A
页面类型: vue
vue版本: vue2
打包方式: 离线
项目创建方式: HBuilderX
打64位包,Android gradle文件中改成如下:```javascript
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
安装运行,启动页或者广告页闪退
打64位包,Android gradle文件中改成如下:```javascript
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
安装运行,运行成功
启动页或者广告页闪退
最近应用上架的时候需要打64位的包,之前我们只用的32位的没有出现问题。之前Android gradle文件中设置的是:```javascript
ndk {
abiFilters 'armeabi-v7a'
}
现在要打64位包的时候改成了:```javascript
ndk {
abiFilters 'armeabi-v7a', 'arm64-v8a'
}
运行时,在广告页闪退,错误如下:
java.lang.UnsatisfiedLinkError: No implementation found for void io.dcloud.common.cs.DA.arn(java.lang.String, java.lang.Object) (tried Java_io_dcloud_common_cs_DA_arn and Java_io_dcloud_common_cs_DA_arn__Ljava_lang_String_2Ljava_lang_Object_2)
at io.dcloud.common.cs.DA.arn(Native Method)
at io.dcloud.common.cs.DA.ar(DA.java:50)
at io.dcloud.feature.ad.dcloud.ADHandler.pull(SourceFile:21)
at io.dcloud.feature.ad.dcloud.AdFeatureImpl.doForFeature(SourceFile:62)
at io.dcloud.feature.ad.AdFeatureImplMgr.doForFeature(SourceFile:6)
at io.dcloud.a.a(SourceFile:13)
at io.dcloud.b.checkAndRequestStoragePermission(SourceFile:27)
at io.dcloud.WebAppActivity.checkAndRequestStoragePermission(SourceFile:1)
at io.dcloud.b$b.onClick(SourceFile:1)
at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:201)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:7915)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
nayun (作者)
No implementation found for void io.dcloud.common.cs.DA.arn(java.lang.String, java.lang.Object) (tried Java_io_dcloud_common_cs_DA_arn and Java_io_dcloud_common_cs_DA_arn__Ljava_lang_String_2Ljava_lang_Object_2)
at io.dcloud.common.cs.DA.arn(Native Method)
at io.dcloud.common.cs.DA.ar(DA.java:50)
at io.dcloud.feature.gg.dcloud.ADHandler.pull(SourceFile:21)
at io.dcloud.feature.gg.dcloud.AdFeatureImpl.doForFeature(SourceFile:247)
at io.dcloud.feature.gg.AdFeatureImplMgr.doForFeature(SourceFile:5)
at io.dcloud.a.a(SourceFile:18)
at io.dcloud.b.checkAndRequestStoragePermission(SourceFile:28)
at io.dcloud.WebAppActivity.checkAndRequestStoragePermission(SourceFile:1)
at io.dcloud.b$c.a(SourceFile:7)
at io.dcloud.common.ui.b.a(SourceFile:340)
at io.dcloud.b.onCreate(SourceFile:47)
at io.dcloud.WebAppActivity.onCreate(SourceFile:24)
at com.wuguanlaoshan.yezhu.MPandoraEntryActivity.onCreate(MPandoraEntryActivity.java:30)
at android.app.Activity.performCreate(Activity.java:7896)
at android.app.Activity.performCreate(Activity.java:7885)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1353)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3557)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3727)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2279)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:230)
at android.app.ActivityThread.main(ActivityThread.java:7915)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:526)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1034)
哈灰色 - 功能测试
java.lang.UnsatisfiedLinkError: No implementation found for void io.dcloud.common.cs.DA.arn(java.lang.String, java.lang.Object) (tried Java_io_dcloud_common_cs_DA_arn and Java_io_dcloud_common_cs_DA_arn__Ljava_lang_String_2Ljava_lang_Object_2)
at io.dcloud.common.cs.DA.arn(Native Method)
at io.dcloud.common.cs.DA.ar(DA.java:50)
at io.dcloud.feature.gg.dcloud.ADHandler.pull(SourceFile:21)
at io.dcloud.feature.gg.dcloud.AdFeatureImpl.doForFeature(SourceFile:254)
at io.dcloud.feature.gg.AdFeatureImplMgr.doForFeature(SourceFile:5)
at io.dcloud.a.a(SourceFile:18)
at io.dcloud.b$a.run(SourceFile:5)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:271)
at android.app.ActivityThread.main(ActivityThread.java:8305)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:992)
nayun (作者)
3.3.11可以吗,我换成最新的3.3.11版本仍然抱错
2022-02-17 13:56
DCloud_Android_ST
回复 nayun: appid发下
2022-02-17 14:43
nayun (作者)
回复 DCloud_Android_ST: UNI4371DE2
2022-02-17 14:51
DCloud_Android_ST
回复 nayun: 你云打包了没 我这没查到你的打包记录
2022-02-17 14:54
nayun (作者)
回复 DCloud_Android_ST: 需要先云打包吗,我们项目是用的离线打包的方式
2022-02-17 15:34
nayun (作者)
回复 DCloud_Android_ST: 我刚刚云打包过了
2022-02-17 16:02
DCloud_Android_ST
回复 nayun: 我这边看你问题描述里 已个离线打包的描述都没有 那你云打包能复现问题吗
2022-02-17 16:38
nayun (作者)
回复 DCloud_Android_ST: 刚刚试了一下,云打包的没问题
2022-02-17 16:51
DCloud_Android_ST
回复 nayun: 那应该是你SDK不匹配导致的。你升级时将所有aar重新放置一遍,不要使用其他版本的依赖库
2022-02-17 16:53
nayun (作者)
回复 DCloud_Android_ST: 好的,我试一下
2022-02-17 17:02
nayun (作者)
回复 DCloud_Android_ST: HbuilderX升级到最新的3.3.11,sdk也都下载最新的3.3.11,替换了Android原生基座libs里的所有相关的aar,运行后白屏,然后闪退。
2022-02-18 10:04
nayun (作者)
报错信息如下
2022-02-18 10:04
DCloud_Android_ST
回复 nayun: 那可能是你build.gradle缺少配置 你看下原生离线打包集成文档 补充相关配置不要使用老的配置信息 比如 java1.8的配置、androidx等
2022-02-18 11:03