GME Demo 用Unity 打包Internal 包 闪退?

  • 回答 (2)
  • 关注 (0)
  • 查看 (172)

java.lang.UnsatisfiedLinkError: No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator() (tried Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator and Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator__)

at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator(Native Method)

at com.unity3d.player.UnityPlayer.resume(Unknown Source:27)

at com.unity3d.player.UnityPlayerActivity.onResume(Unknown Source:5)

at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1413)

at android.app.Activity.performResume(Activity.java:7400)

at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3820)

at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3860)

at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)

at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)

at android.os.Handler.dispatchMessage(Handler.java:106)

at android.os.Looper.loop(Looper.java:201)

at android.app.ActivityThread.main(ActivityThread.java:6823)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

用户4182263用户4182263提问于
用户3004111回答于
已采纳

今天遇到同样的问题。

修复方法:

打包时,仅保留游戏裸包中对应arm类型,其余的删除。

腾讯音视频小蔡

深圳市腾讯科技 · 软件开发工程师 (已认证)

QQ:471381568回答于
推荐

你好,发生此情况的原因大概率是没有打包GME v8a架构所导致。请检查一下打包出来的apk是否有Android v8a 的相关so文件。

扫码关注云+社区

领取腾讯云代金券