Unity (Vuforia) project integrated in Android project shows a black screen on startup

前端 未结 2 791
日久生厌
日久生厌 2021-02-11 02:28

My situation:

I created an Android app and an AR Unity app that makes use of Vuforia 7.0.47. The Android app has lots of features, one of the features i

相关标签:
2条回答
  • 2021-02-11 02:54

    You need to take VuforiaWrapper.aar file from

    ExportedAndroidStudioProject/libs/VuforiaWrapper.aar

    and add it to your app in the same directory where you added UnityGame.aar file and add it in gradle as a dependency

     dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation(name: 'UnityGame', ext:'aar')
    implementation(name: 'VuforiaWrapper', ext:'aar')}   
    

    Hope this helps you. Good luck

    0 讨论(0)
  • 2021-02-11 02:56

    As mentioned you have to add VuforiaWrapper.aar

    But sometimes you will have to add the dependency as

    implementation project(':VuforiaWrapper')
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    
    0 讨论(0)
提交回复
热议问题