Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3078] Error creating a module in IOS and Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2012-04-12T15:55:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules
LabelsIOS,, Titanium, TitaniumStudio, android
Reportereddahbani
AssigneeIngo Muschenetz
Created2012-04-12T05:13:03.000+0000
Updated2016-03-08T07:48:07.000+0000

Description

Hello every body when i want to create a Module for Android, i find this ERROR <[ERROR] Couldn't find the Google APIs r8 add-on directory Aborting > and i can not continus, Please if you have any ideas help me

Comments

  1. Ingo Muschenetz 2012-04-12

    Please provide the following:

    What Titanium SDK you are using

    What Android SDK you have installed

    The command line you are calling

    The exact error you get (the whole stack trace)

  2. eddahbani 2012-04-13

    1 . Titanium SDK : 1.8.2 2 . Android SDK : 2.2 3 . Command line : titanium create --platform=android --type=module --name=test --id=com.test --android=/Users/i.eddahbani/Downloads/android-sdk-mac_86 4 . Exact Error : Traceback (most recent call last): File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 319, in main(sys.argv) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 316, in main module = ModuleProject(config['platform'],project_dir,config) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 63, in __init__ self.platform_delegate = ModulePlatform.create_platform(platform, project_dir, config, self) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 33, in create_platform platform_module_class = getattr(__import__(platform), platform) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/android/android.py", line 15, in import module, androidsdk File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/androidsdk.py", line 44, in class AndroidSDK: File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/androidsdk.py", line 100, in AndroidSDK if self.google_apis_dir is None: NameError: name 'self' is not defined Aborting ---------------------------------------------------------------------------------------- i want to create a module (Module for tracking a Pages and Events) for android and used it for a Titanium project. I already modified the file 'titanium.py' in line 100 but still the same ereur. If you have any question, i am here. Thank you very mush.
  3. eddahbani 2012-04-19

    Ingo Muschenetz

    Please, have you any ideas for the error ? {noformat} Traceback (most recent call last): File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 319, in main(sys.argv) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 316, in main module = ModuleProject(config['platform'],project_dir,config) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 63, in __init__ self.platform_delegate = ModulePlatform.create_platform(platform, project_dir, config, self) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/module.py", line 33, in create_platform platform_module_class = getattr(__import__(platform), platform) File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/module/android/android.py", line 15, in import module, androidsdk File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/androidsdk.py", line 44, in class AndroidSDK: File "/Users/i.eddahbani/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/androidsdk.py", line 100, in AndroidSDK if self.google_apis_dir is None: NameError: name 'self' is not defined Aborting {noformat} + Thanks in advance +
  4. Jeff English 2012-04-19

    I'm not too familiar with the python scripts for module creation, but it looks like the google apis are not properly installed for this user.
  5. eddahbani 2012-04-19

    Jeff

    I install all the apis , but a have a question, Where can I check the Google apis directory in my titanium? thanks,
  6. eddahbani 2012-04-20

    I find the solution, thank you every body

JSON Source