Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Crash with ar core (Android)

Discussion in 'Vuforia' started by thibouf, Dec 6, 2018.

  1. thibouf

    thibouf

    Joined:
    Mar 17, 2017
    Posts:
    73
    I am trying to use ar core with unity following this documentation :
    https://library.vuforia.com/content/vuforia-library/en/articles/Solution/arcore-with-vuforia.html

    It seems quite simple , just copy the lib and voilà ... But, just adding the lib just leads my app to crash.

    Here is the logcat extract :
    Code (CSharp):
    1. 12-06 15:52:20.362: E/zygote64(11290): No implementation found for void com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator() (tried Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator and Java_com_unity3d_player_UnityPlayer_nativeRestartActivityIndicator__)
    2. 12-06 15:52:20.363: D/AndroidRuntime(11290): Shutting down VM
    3. 12-06 15:52:20.363: E/AndroidRuntime(11290): FATAL EXCEPTION: main
    4. 12-06 15:52:20.363: E/AndroidRuntime(11290): Process: com.xxx.xxx, PID: 11290
    5. 12-06 15:52:20.363: E/AndroidRuntime(11290): 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__)
    6. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at com.unity3d.player.UnityPlayer.nativeRestartActivityIndicator(Native Method)
    7. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at com.unity3d.player.UnityPlayer.resume(Unknown Source:27)
    8. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at com.unity3d.player.UnityPlayerActivity.onResume(Unknown Source:5)
    9. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1361)
    10. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.Activity.performResume(Activity.java:7361)
    11. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3765)
    12. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3830)
    13. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3038)
    14. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.ActivityThread.-wrap11(Unknown Source:0)
    15. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
    16. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.os.Handler.dispatchMessage(Handler.java:105)
    17. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.os.Looper.loop(Looper.java:164)
    18. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at android.app.ActivityThread.main(ActivityThread.java:6944)
    19. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at java.lang.reflect.Method.invoke(Native Method)
    20. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    21. 12-06 15:52:20.363: E/AndroidRuntime(11290):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
    22.  
    Also tried to add this in the manifest

    <meta-data android:name="com.google.ar.core" android:value="optional" />


    Tested with both arcore 1.3.0 and 1.5.0. And I do have ar core installed on my device (other arcore apps work fine)

    My device is a Samsung Galaxy A5 2017

    I have tried to find some other post about this error, but no one provide a good solution .... Any ieda what may be wrong ?
     
  2. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    261
    Hello,

    Which version of Android does the Samsung Galaxy A5 2017 run?

    Thanks,
    Vuforia Engine Support
     
  3. thibouf

    thibouf

    Joined:
    Mar 17, 2017
    Posts:
    73
    Hello,

    My device is currently on Android 8.0.0
     
  4. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    261
    Hello,

    Can you also provide the exact device model number? I want to test with a device that is as close as possible to yours.

    To find an Android device's model number: Settings->About phone/device->Model number

    Thanks,
    Vuforia Engine Support
     
  5. thibouf

    thibouf

    Joined:
    Mar 17, 2017
    Posts:
    73
    Of course, it is : SM-A520F
     
unityunity