Start a new topic

Unity build failed Android apk

Start a discussions : Wikitude

Hi,every body.

In  windows 10 .unity 5.4.3.  wikitudu sdk 6.1  android 4.0.3

I try build wikitude Demo to apk, hava a error message:

Failed to compile resources with the following parameters: -bootclasspath "D:/SDK/Android/sdk\platforms\android-24\android.jar" -d "F:\unity3d\testWIKIslam\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\wikitude\unity\" : D:\SDK\Android\sdk\platforms\android-24\android.jar(java/lang/Object.class): D:\SDK\Android\sdk\platforms\android-24\android.jar(java/lang/AutoCloseable.class):

UnityException: Resource compilation failed! Failed to recompile android resource files. See the Console for details.


my jdk version is 1.6,but i try change to jdk1.7 ,this error still exists.

Who can give me some advice? thank you!


You need to open our example application in Unity and export the project for Android. After that, you can open the project in Android Studio and deploy it on your device. Did you follow the instructions described in our documentation here?




1 person likes this


I have already solved the problem.

I have been able to build normal after I use the 1.8 version of the JDK.

Thank you for your answer.


Login or Signup to post a comment