I am building my game, it worked fine before, then I added Unity Ads now I get this error.
Error building Player: Win32Exception: ApplicationName=‘S:\Program Files (x86)\Java\jre1.8.0_40\bin\javac.exe’, CommandLine=‘-bootclasspath “S:/Users/Curt/AppData/Local/Android/sdk/platforms/android-21\android.jar” -d “S:\Users\Curt\Desktop\StackIt\Temp\StagingArea\bin\classes” -source 1.6 -target 1.6 -encoding UTF-8 “com\GreenBoxInteractive\StackIt\R.java” “com\unity3d\ads\android\R.java”’, CurrentDirectory=‘S:\Users\Curt\Desktop\StackIt\Temp\StagingArea\gen’
GreenBoxInteractive:
I am building my game, it worked fine before, then I added Unity Ads now I get this error.
Error building Player: Win32Exception: ApplicationName=‘S:\Program Files (x86)\Java\jre1.8.0_40\bin\javac.exe’, CommandLine=‘-bootclasspath “S:/Users/Curt/AppData/Local/Android/sdk/platforms/android-21\android.jar” -d “S:\Users\Curt\Desktop\StackIt\Temp\StagingArea\bin\classes” -source 1.6 -target 1.6 -encoding UTF-8 “com\GreenBoxInteractive\StackIt\R.java” “com\unity3d\ads\android\R.java”’, CurrentDirectory=‘S:\Users\Curt\Desktop\StackIt\Temp\StagingArea\gen’
There should be a more detailed error message, see the console window (and post it here)
This is from the console window
GreenBoxInteractive:
It’s hard to determine the source of error without more information…
Which version of Unity are you using ?
Also, do you have any java plugins (.jar files or Android libraries) in your project ?
Jami_2
April 2, 2015, 7:59am
6
Two options i check when i run in error.
First check your Java JDK is correct installed.
Second if i make a Update of such Addons that goes in Plugin Folder. Check for double jar Files.
liortal:
It’s hard to determine the source of error without more information…
Which version of Unity are you using ?
Also, do you have any java plugins (.jar files or Android libraries) in your project ?
Jami_2:
Two options i check when i run in error.
First check your Java JDK is correct installed.
Second if i make a Update of such Addons that goes in Plugin Folder. Check for double jar Files.
I added Unity Ads, I’m kinda new to all this I’m not aware of all the terms. I’ll check my JDK when I am home.
Jami_2
April 2, 2015, 8:37am
8
Unity Ads make significante changes. Best way for find out. Delete all folders in your project from unityads and import it again. Delete the device.jar from Plugin/Android.
1 Like
liortal:
It’s hard to determine the source of error without more information…
Which version of Unity are you using ?
Also, do you have any java plugins (.jar files or Android libraries) in your project ?
I am on 4.5.5f and there a .jar files in the Unity Ads.
I fixed this by installing the 32 bit Java JDK