Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue locating correct AAPT version #16

Open
crow9724 opened this issue May 6, 2014 · 0 comments
Open

Issue locating correct AAPT version #16

crow9724 opened this issue May 6, 2014 · 0 comments

Comments

@crow9724
Copy link

crow9724 commented May 6, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant