Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Titanium mobile module project Missing required Android Add-Ons

I want to make a java module for my application.
To to this i folowed this tutorial:
http://wiki.appcelerator.org/display/tis/Creating+a+New+Titanium+Module

I downloaded titanium studio 1.0.7 to use the new wizzard. But when i run the wizzard the IDE gives this error:

Target platform(s) not selected (Missing required Android Add-Ons[addon.+google.+apis.+7, addon.+google.+apis.+8])

But when i open my sdk manager i can see that i have the android 2.1 and 2.2 sdk's fully installed.

— asked November 14th 2011 by Frank Folsche
  • android
  • java
  • module
0 Comments

1 Answer

  • Accepted Answer

    Frank

    Would you confirm that you have the "Google APIs by Google Inc…" packages installed, as shown in Summary of Installed Android Packages?

    Thank you

    — answered November 14th 2011 by Paul Dowsett
    permalink
    12 Comments
    • thanks for the quick response.
      This is including the Google APIs by Google Inc.
      For 2.1 this is the api 7 rev. 1 and for 2.2 this is api 8 rev. 2

      next to this i also have android 4.0 and 2.3.3 installed

      — commented November 14th 2011 by Frank Folsche
    • Oh, When i first started the wizzard i did not had these installed but even after installing the google APIs this problem remained.

      — commented November 14th 2011 by Frank Folsche
    • I have the same problem. Maybe it has something to do with the new SDK Tools release r15?

      — commented November 14th 2011 by Erik Beugelaar
    • Erik

      Possibly, Erik, but I am not certain. What Operating System are you running TiStudio on?

      Thanks

      — commented November 14th 2011 by Paul Dowsett
    • Erik - sorry, would you create your own question, following the Q&A Question Checklist? I'm afraid it's too difficult to troubleshoot problems like these for multiple people in a single thread.

      Thank you

      — commented November 14th 2011 by Paul Dowsett
    • Frank - what OS are you using?

      Thanks

      — commented November 14th 2011 by Paul Dowsett
    • Paul, I will do. In the meantime I checked in OSX Snow too. The target for iOS is enabled (I did not test the generation) but Android unfortunately is grayed (SDK is installed correctly). Further I noticed on both platforms (Mac/Windows 7) that I can't create a module anymore manually. I think it has to do with an Android environment variable which isn't handled correctly in the Python script module.py in Titanium Mobile SDK 1.7.5 (I also tested from 1.7.2 up to 1.7.5 and all not working.

      This is the result in OSX:

      titanium create –platform=android –type=module –name=calc –id=org.appcelerator.calc –android=/Developer/Android/android-sdk-macosx
      Traceback (most recent call last):
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/module/module.py", line 319, in <module>
      main(sys.argv)
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/module/module.py", line 316, in main
      module = ModuleProject(config['platform'],project_dir,config)
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/module/module.py", line 63, in init
      self.platform_delegate = ModulePlatform.create_platform(platform, project_dir, config, self)
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/module/module.py", line 34, in create_platform
      return platform_module_class(project_dir, config, module)
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.7.5/module/android/android.py", line 26, in init
      print "[ERROR] Couldn't find the Google APIs r%s add-on directory" % self.sdk.DEFAULT_API_LEVEL
      AttributeError: AndroidSDK instance has no attribute 'DEFAULT_API_LEVEL'
      Created android module project

      I hope you have some more info.

      Cheers,
      Erik

      — commented November 14th 2011 by Erik Beugelaar
    • It seems indeed it has to do with the new Android release (r15).
      In the add-ons subfolders of sdk manager r15 the naming convention is addon-google_apis-googleinc-7 wheres in lower versions the naming convention is addon_google_apis_google_inc_7. I'm going to rename all and try again.

      • sorry Paul for not creating a new Q&A

      — commented November 15th 2011 by Erik Beugelaar
    • Erik

      Could you provide me with a link to your new Q&A question containing this information? Then I can go through it with you.

      Many thanks

      — commented November 15th 2011 by Paul Dowsett
    • Paul, I use titanium on Windows 7 32 bit.
      Erik, Did changing the folder name work for you?

      I tried changing the folder name but i kept having the same problem. I even used the old SDK manager but this also didn't help, even after re-installing titanium studio and removing all the user preferences.

      — commented November 15th 2011 by Frank Folsche
    • Paul: I am going to make now a new Q&A question

      Frank: Yes, manual creating of module is working now again.

      I will provide the new Q&A link when ready. One moment please.

      Cheers,
      Erik

      — commented November 15th 2011 by Erik Beugelaar
    • http://developer.appcelerator.com/question/128248/titanium-studio-preview—target-platforms-not-selected-missing-required-android-add-onsaddongoogleapis7-addongoog

      — commented November 15th 2011 by Erik Beugelaar
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.