Unable to resolve project target 'android-13'
Monkey Targets Forums/Android/Unable to resolve project target 'android-13'
| ||
| This was working a week ago, now when I try to compile for Android I get this; /Applications/Development/adt-bundle-mac-x86_64-20140321/sdk/tools/ant/build.xml:542: Unable to resolve project target 'android-13' What did I break this time? Here's the full output:
TRANS monkey compiler V1.72
Parsing...
Modpath error - import=sound, existing=math
Semanting...
Translating...
Building...
Buildfile: /Users/lindsay/Monkey/MLWordMatch/current/MLWordMatch.buildv79e/android/build.xml
-check-env:
[checkenv] Android SDK Tools Revision 22.6.2
[checkenv] Installed at /Applications/Development/adt-bundle-mac-x86_64-20140321/sdk
-setup:
[echo] Project Name: MonkeyGame
[gettype] Project Type: Application
-pre-clean:
clean:
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on
BUILD SUCCESSFUL
Total time: 0 seconds
Buildfile: /Users/lindsay/Monkey/MLWordMatch/current/MLWordMatch.buildv79e/android/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 22.6.2
[checkenv] Installed at /Applications/Development/adt-bundle-mac-x86_64-20140321/sdk
-setup:
[echo] Project Name: MonkeyGame
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for MonkeyGame...
BUILD FAILED
/Applications/Development/adt-bundle-mac-x86_64-20140321/sdk/tools/ant/build.xml:542: Unable to resolve project target 'android-13'
TRANS FAILED: Android build failed.
Total time: 0 seconds
Done.
Thanks, Lindsay |
| ||
| Did you re-install the Android SDK? Used the automatic target installer available here? Start 'android' in AndroidSDK/tools/, so probably: /Applications/Development/adt-bundle-mac-x86_64-20140321/sdk/tools/android and check that "Android 3.2 (API 13)" is installed. For the new 'Android_Game_(experimental)' target, you need to install "Android 4.4.2 (API 19)", too. I have only the plain Android SDK/NDK installed, not the ADT bundle. |
| ||
| I don't know why it changed, but updating via "Android" fixed it - thanks :) |
| ||
| can i somehow compile and run the game directly on my phone which is connected via usb? |
| ||
| can i somehow compile and run the game directly on my phone which is connected via usb? Compilation and packaging is done on the computer. If your phone/tablet is connected via USB, the app starts directly on the connected external device, when hitting F5 within the various Monkey X IDE's. With a new phone/tablet, you may need to unlock 'developer mode' first, in device settings. You also need to allow 'USB Debugging' on the device, in options/preferences. See here. |