Search Unity

Android apk build errors using Vuforia

Discussion in 'Vuforia' started by Trey_Yi, Sep 3, 2018.

  1. Trey_Yi

    Trey_Yi

    Joined:
    Aug 14, 2018
    Posts:
    3
    Vuforia gets started to initialize, but never finished the initialization processes. The below are the logs from Android Studio:

    [Debugging Logs]
    09-03 07:22:34.513 6556-6574/com.test.Tablet_test3 I/Unity: Compiled for Android

    (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    09-03 07:22:34.540 6556-6574/com.test.Tablet_test3 W/linker: libVuforiaUnityPlayer.so: unused DT entry: type 0x6ffffffe arg 0x3f30
    libVuforiaUnityPlayer.so: unused DT entry: type 0x6fffffff arg 0x3
    09-03 07:22:34.660 6556-6574/com.test.Tablet_test3 I/Unity: Initializing Vuforia

    (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    09-03 07:22:34.666 6556-6574/com.test.Tablet_test3 I/Unity: Vuforia SDK Version: 7.2.24

    (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    Vuforia Unity Extension Version: 7.2.24

    (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    Unity Editor Version: 2018.2.1f1

    (Filename: ./Runtime/Export/Debug.bindings.h Line: 43)
    09-03 07:22:34.696 6556-6574/com.test.Tablet_test3 D/Vuforia: Initializing Vuforia...
    09-03 07:22:34.696 6556-6574/com.test.Tablet_test3 I/System.out: Native library libVuforia.so loaded
    09-03 07:22:34.701 6556-6574/com.test.Tablet_test3 I/AR: Vuforia selected rendering API OpenGL ES 2.x
    Vuforia SDK version 7.2.24
    09-03 07:22:35.377 1173-1764/? V/EmulatedCamera_Camera: getCameraInfo
    09-03 07:22:35.377 1173-1764/? V/EmulatedCamera_BaseCamera: getCameraInfo
    .
    .
    .
    .
    .
    .
    .
    .
    09-03 07:22:35.519 6556-6574/com.test.Tablet_test3 D/AR: RenderManager: Could not retrieve a valid GLSurfaceView in view hierarchy, therefore cannot set any render mode
    09-03 07:23:00.011 2708-3215/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xa3441520: ver 2 0



    * What does it cause the errors? It works well in Unity, but when imported, it seems Vuforia is not initialized. By the way Vuforia Core sample totally works well in Unity and Android phone. Your help would be very appreciated. Thanks a lot!
     
    Last edited: Sep 3, 2018
  2. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Importing a Unity project into Android Studio is not a supported setup when using Vuforia. It is recommended to build and deploy your project within Unity if that is what you are developing your project in.

    What are you hoping to achieve or gain by exporting your project out to Android Studio instead of deploying directly from Unity?
     
  3. Trey_Yi

    Trey_Yi

    Joined:
    Aug 14, 2018
    Posts:
    3
    Thanks for the reply. By the way, I didn't import the Unity project into Android Studio, but I was just checking the logs on Android Studio.

    What I am hoping to achieve is simply successful Vuforia initialization. Somehow Vuforia initialization never gets done.
     
  4. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Apologies for misunderstanding.

    What features are you using in this project and do you have a development license associated with the project?

    Can you download the core samples and see if you get this same issue when attempting to deploy this project?