I have installed the latest Android SDK and Titanium. I am able to compile and use Kitchen Sink on the iPhone emulator but not the Android emulator. When I run a trace, it seems that I am running into permission errors:
[TRACE] File "/Library/Application Support/Titanium/mobilesdk/osx/220.127.116.11/android/androidsdk.py", line 166, in list_devices
[TRACE] (out, err) = subprocess.Popen([adb, 'devices'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()
[TRACE] File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in init
[TRACE] errread, errwrite)
[TRACE] File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
[TRACE] raise child_exception
[TRACE] OSError: [Errno 13] Permission denied
Any ideas how to fix this issue? I'd really like to get going with Android development with Titanium!
Hi, I just had this issue to. The reason is you have to chmod the "/System/Library" directory to allow access 775 should to it. Hope that works for you! E-mail me at firstname.lastname@example.org if you need me to walk you through it.
Cool. That was my first inclination but I thought it would be prudent to get some confirmation. Thanks!
The Troubleshooting Your Installation guide can help you with permissions issues.
have the exact same error. has anyone found a workaround for this – changing permissions on /System/Library doesn't seem like the right thing to do.
Only happens when I use the 1.4.2 mobile sdk.
Can create a new mobile project, and use any version of mobile sdk except 1.4.2 and thats the version I need to use.
David / Philip
Make sure you follow the information in Preparing for Android development, but in addition also be aware that package "SDK Platform Android 1.5…" also needs to be installed due to a bug explained in ticket #2813. When this ticket is closed, SDK 1.5 cam be uninstalled/removed.
I'm getting the same issue here… using Android SDK 1.5 (although I have 1.6 as well), Titanium 1.2.2, Mac OSX.
[TRACE] errread, errwrite) [TRACE] File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child [TRACE] raise child_exception [TRACE] OSError: [Errno 13] Permission denied
Does anyone have the definitive solution out there?! Much appreciated :-)
after making a symlink of adb into "tools" directory, don't forget to chmod +x the adb
Now it's working for me.