Unity-Technologies / uaal-example

Other
736 stars 234 forks source link

Cannot find OverrideUnityActivity class #25

Open aornano opened 4 years ago

aornano commented 4 years ago

Following the instruction , this project crash with this error:

/Users/admin/Desktop/uaal-example-master/NativeAndroidApp/app/src/main/java/com/unity/mynativeapp/MainUnityActivity.java:10: error: package com.company.product does not exist
import com.company.product.OverrideUnityActivity;

changing MainUnityActivity with: import com.unity.mynativeapp.OverrideUnityActivity; same error..

carscan commented 4 years ago

please make sure you have copied Android plugin files from UnityProject(/Git/uaal-example/UnityProject/Assets/Plugins/Android) in your own Unity project file. Then export your unity project and follow the rest of the process provided in the tutorial.

CristianContre commented 3 years ago

please make sure you have copied Android plugin files from UnityProject(/Git/uaal-example/UnityProject/Assets/Plugins/Android) in your own Unity project file. Then export your unity project and follow the rest of the process provided in the tutorial.

Where do I have to paste them?

marcspraragen commented 3 years ago

The OverrideUnityActivity.java can be in java subfolder of Android project, and not in Plugins/Android, right?

johngoren commented 3 years ago

Yeah, so far it seems like the only plugin file I needed for this was a plain old .java superclass file that I could stick in among the other java/kotlin subfolders. Then it booted just fine on my phone.