[TIMOB-8621] Android: Error creating Module projects with new installation of SDK r18 and Google APIs r8
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-04-10T16:05:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.1.0, Release 2.0.1, Sprint 2012-08 |
Components | Android |
Labels | core, qe-and040912 |
Reporter | Dustin Hyde |
Assignee | Allen Yeung |
Created | 2012-04-04T11:11:48.000+0000 |
Updated | 2013-05-28T18:56:13.000+0000 |
Description
When creating an Android module project, the process ends in error:
[ERROR] Couldn't find the Google APIs r8 add-on directory
1. Create a new module project using titanium, for example:
dhydeMBPSnowLeopard:~ dhyde$ "/usr/bin/python" "/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.v20120407201726/titanium.py" "create" "--type=module" "--id=com.appcelerator.mymodule" "--name=MyModule" "--dir=/var/folders/Jt/Jte2czQvFoaxMh25z-WDKE+++TM/-Tmp-/module_temp8018343781039291630.tmp" "--platform=android" "--sdk=/Users/dhyde/Documents/android/android-sdk-macosx"
Expected Result:
Module project should be created.
Attachments
File | Date | Size |
---|---|---|
Android Module Creation Error Log.txt | 2012-04-04T11:11:48.000+0000 | 23836 |
Android Module Error.png | 2012-04-04T11:11:48.000+0000 | 91823 |
detailed log.txt | 2012-04-09T09:43:25.000+0000 | 13363 |
For those experiencing the issue, plea update to the latest RC version from preview.appcelerator.com and retry. This should give us more information about what is causing the issue.
To all...please try the following:
Open up Preferences > Studio > Troubleshooting and enable "All" debugging on specific component com.aptana.core/debug/shell
Run the module creation wizard for Android. Check the log file. You'll see the exact command it used to run it. Try running that yourself on the command line. Does it work?
If you run the process inside Studio, does that end folder get created?
Attaching detailed log from Ingo's steps. The exact command run from the command line fails:
The module folder is created, but is empty. Note: Google API r8 is installed on my machine.
To replicate, wipe your android ADK folder and install version r17. You will then get the same error Dustin reports. To fix, add the following lines into androidsdk.py @ line 102:
I believe this is probably a blocker as other users will run into this issue with other things that reference the add-ons folder. Note that we use a regex in Studio for parsing for these modules--it might be easier. We use "addon.+google.+apis.+8".
To test: 1. Install Google API r8 and also install the sdk addons accordingly. 2. Inside the addons directory of your android sdk, you verify there is an addon named "addon-google_apis-google-8" 3. Launch Studio, and make sure you are using the r8 sdk inside preferences > Titanium Studio > Titanium 4. Create a new Mobile Module Project The module should create without any errors.
Closing as Fixed. SDK: 2.0.1.v20120410103239, 2.1.0.v20120410105657 Android: V8 Studio: 2.0.1.201204061639 OS: Snow Leopard, Windows 7 Devices Tested: Nexus S 4.0.4 Able to create, build, and run module in app.
Opening to edit labels.