You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed an issue today while trying to get the plugin working. It seems that if you have an older version of AAPT on your system, then that one may be used when building the Java portion of the code. The Unity console indicates the error as "R.Java cannot be found".
I was able to temporarily work-around by manually setting pathAAPT in OuyaPanel.cs. The correct version was located (for me) in android-sdk\build-tools\18.1.1.
Let me know if you need anymore info.
Thanks,
Chris
The text was updated successfully, but these errors were encountered:
I noticed an issue today while trying to get the plugin working. It seems that if you have an older version of AAPT on your system, then that one may be used when building the Java portion of the code. The Unity console indicates the error as "R.Java cannot be found".
Here's the log of the call to AAPT:
[Running Process] filename=C:\Program Files (x86)\Android\android-sdk\platforms\android-4\tools\aapt.exe arguments=package -v -f -m -J gen -M "C:\Users\chris\Documents\New Unity Project 10/Assets/Plugins/Android/AndroidManifest.xml" -S "C:\Users\chris\Documents\New Unity Project 10/Assets/Plugins/Android/res" -I "C:/Program Files (x86)/Android/android-sdk/platforms/android-16/android.jar" -F "C:\Users\chris\Documents\New Unity Project 10/Assets/Plugins/Android/bin/resources.ap_" -J "C:\Users\chris\Documents\New Unity Project 10/Assets/Plugins/Android/src"
UnityEngine.Debug:Log(Object)
OuyaPanel:RunProcess(String, String, String, String&, String&) (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:2917)
OuyaPanel:RunProcess(String, String) (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:2893)
OuyaPanel:GenerateRJava() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:1099)
OuyaPanel:CompileApplicationJava() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:1348)
OuyaPanel:Update() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:940)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Notice, it's selecting AAPT from the android-4 tools even thought it's configured to use android-16. That generates the following warning:
[Results] elapsedTime: 0.0490028 errors: invalid resource directory name: C:\Users\chris\Documents\New Unity Project 10\Assets\Plugins\Android\res/drawable-xhdpi
output:
UnityEngine.Debug:Log(Object)
OuyaPanel:RunProcess(String, String, String, String&, String&) (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:2926)
OuyaPanel:RunProcess(String, String) (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:2893)
OuyaPanel:GenerateRJava() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:1099)
OuyaPanel:CompileApplicationJava() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:1348)
OuyaPanel:Update() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:940)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
I was able to temporarily work-around by manually setting pathAAPT in OuyaPanel.cs. The correct version was located (for me) in android-sdk\build-tools\18.1.1.
Let me know if you need anymore info.
Thanks,
Chris
The text was updated successfully, but these errors were encountered: