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

前端 未结 2 799
日久生厌
日久生厌 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

提交回复
热议问题