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

前端 未结 2 848
面向向阳花
面向向阳花 2021-02-11 01:57

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:34

    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

提交回复
热议问题