Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8621] Android: Error creating Module projects with new installation of SDK r18 and Google APIs r8

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-10T16:05:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.1.0, Release 2.0.1, Sprint 2012-08
ComponentsAndroid
Labelscore, qe-and040912
ReporterDustin Hyde
AssigneeAllen Yeung
Created2012-04-04T11:11:48.000+0000
Updated2013-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

FileDateSize
Android Module Creation Error Log.txt2012-04-04T11:11:48.000+000023836
Android Module Error.png2012-04-04T11:11:48.000+000091823
detailed log.txt2012-04-09T09:43:25.000+000013363

Comments

  1. Ingo Muschenetz 2012-04-08

    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.
  2. Ingo Muschenetz 2012-04-09

    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?

  3. Dustin Hyde 2012-04-09

    Attaching detailed log from Ingo's steps. The exact command run from the command line fails:
       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"
       [ERROR] Couldn't find the Google APIs r8 add-on directory
       Aborting
       
    The module folder is created, but is empty. Note: Google API r8 is installed on my machine.
  4. Ingo Muschenetz 2012-04-09

    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:
       if self.google_apis_dir is None:
       	self.google_apis_dir = self.find_dir(self.api_level, os.path.join('add-ons', 'addon-google_apis-google-'))
       
  5. Ingo Muschenetz 2012-04-09

    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".
  6. Allen Yeung 2012-04-09

    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.
  7. Dustin Hyde 2012-04-10

    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.
  8. Dustin Hyde 2012-04-10

    Opening to edit labels.

JSON Source