cocos2d-x3.14.1 with crashlyticsNdk drops at startup.

Asked 1 years ago, Updated 1 years ago, 129 views

06-19 15:49:09.103 2709 2709 E AndroidRuntime: Process: jp.hogehoge.appgame, PID:2709
06-19 15:49:09.103  2709  2709 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/jp.hogehogehoge.appgame-1/base.apk"],nativeLibraryDirectories=[/data/app/jp.hogehogehoge.appgame-1/lib/arm64, /data/app/jp.hogehogehoge.appgame-1/base.apk!/lib/arm64-v8a, /vendor/lib64, /system/lib64]]] couldn't find "libMyGame.so"
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at java.lang.Runtime.loadLibrary (Runtime.java:367)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at java.lang.System.loadLibrary (System.java: 1076)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries (Cocos2dxActivity.java:249)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at org.cocos2dx.lib.Cocos2dxActivity.onCreate (Cocos2dxActivity.java:265)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at org.cocos2dx.cpp.AppActivity.onCreate (AppActivity.java:78)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.app.Activity.performCreate (Activity.java:6271)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1108)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2417)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2524)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.app.ActivityThread.access$900 (ActivityThread.java:154)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1391)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.os.Handler.dispatchMessage (Handler.java:102)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.os.Looper.loop (Looper.java:224)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at android.app.ActivityThread.main (ActivityThread.java:5526)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at java.lang.reflect.Method.invoke (Native Method)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:726)
06-19 15:49:09.103 2709 2709 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:616)
06-19 15:49:09.106 1684 3217 D ActivityManager: New dropbox entry:jp.hogehoge.appgame, data_app_crash, 6fa473a2-d026-4d98-adb5-91388ac003df
06-19 15:49:09.107 1684 3217 W ActivityManager: Force finishing activity jp.hogehoge.appgame/org.cocos2dx.cpp.AppActivity

Add the following to proj.android-studio/app/build.gradle

compile('com.crashlytics.sdk.android:crashlytics-ndk:1.1.5@aar'){
  transitive=true; exclude module: 'fabric'
}

t Exclude module: 'fabric' because it conflicts with the library on twitter.

proj.android-studio/app/src/org/coco2dx/cpp/AppActivity.java

import com.crashlytics.android.ndk.CrashlyticsNdk;

〜

protected void onCreate (Bundle savedInstanceState) {

Fabric.with (this, new Crashlytics(), new CrashlyticsNdk(), new Answers());

〜

Before entering crashlyticsNdk, crashlytics and answers worked fine.

android cocos2d-x fabric

2022-09-30 20:21

1 Answers

My senior taught me

 --app-abiarmeabi-v7a

Fixed the architecture with ...!


2022-09-30 20:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.