Closed bbiaudet closed 6 years ago
Did you change 'C:\\absolute path\\to your\\unity export folder'
with your Unity export folder? Can you see UnityProject next to android in Project view in Android Studio?
Yes I changed the way and the project unity is well linked in the project android studio.
Is there a unity-classes.jar located at UnityProject/libs? If so, can you verify that you've put compile project(':UnityProject')
to the correct location?
Yes is located at UnutyProject/libs.
If I leave the .jar in the android project I have a double class loading error
Does changing implementation project(':UnityProject')
to compile project(':UnityProject')
or api project(':UnityProject')
solve the issue?
no for api some error, for compile error is obsolete
I'm out of ideas. As a last resort, you can move UnityProject/libs/unity-classes.jar to android/libs.
At this point, any help is appreciated.
I managed the compilation, I just downgrade Gradle 4.4. at 3.5.
thanks again for help
That's great news! I may update the README if someone else encounters the same issue, as well.
Yep!
Hello, I encounter a compilation problem under android studio 3.1.2, when I delete the unity-classes.jar file in the libs folder of the android project, I have 7 compilation errors: