I am setting up a new build machine, and I had a couple of nightmarish android build issues that I thought I would share with everyone. Maybe it will help somebody else.
My first problem was that when I would try to compile for android, I would get this error in the console:
[ERROR] Application Installer abnormal process termination. Process exit value was 1 [INFO] logfile = /Users/priebe/svn/source/wral/applications/mobile/oaa/build.logSetting console level to "trace" gave me a little more:
Traceback (most recent call last): File "/Users/priebe/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/builder.py", line 2157, in <module> s = Builder(project_name,sdk_dir,project_dir,template_dir,app_id) File "/Users/priebe/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/builder.py", line 234, in __init__ self.sdk = AndroidSDK(sdk, self.tool_api_level) File "/Users/priebe/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/androidsdk.py", line 50, in __init__ self.find_platform_dir() File "/Users/priebe/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA/android/androidsdk.py", line 86, in find_platform_dir old_style_dir = os.path.join(self.android_sdk, 'platforms', android_api_levels[self.api_level]) KeyError: 15It turns out that the "KeyError: 15" was pretty important. It meant that the build scripts couldn't find android SDK for API 15.
When I first added the ti.admob module months ago, I added a
uses-sdk directive to tiapp.xml (per this post:
<ti:app xmlns:ti="http://ti.appcelerator.org"> <android...> <tool-api-level>15</tool-api-level> </android> </ti:app>When I set up the new build machine, I downloaded the latest android SDK (API 16) as well as API 8 (android 2.2). But I didn't grab the SDK files for API 15 (android 2.2).
Installing API 15 SDK files fixed the problem for me. But it took me about 4 hours to find what seems like a fairly obvious solution now.
This helped out me. Faced the same problem! As you suggested, I have also installed API 15 SDK and made sure it uses it via tiapp.xml.
learning how to trace helped me figure this one out...
To turn on Trace, go to the Run Configurations screen and set the log level from Info to Trace.
In my case, the Run wanted me to have SDK 2.2 installed with API 8. Once I installed that, the application launched instantly.
Great! This prevented a headache for me! :-)
Same here and finally resolved the issue. Great and thanks!!
thank you, was also an issue for me.
Thanks a lot !!!
thanks a lot...
Thank you. But. How to install SDK for API version 14 ? I am window. and same problem
[ERROR] Application Installer abnormal process termination. Process exit value was 1 [INFO] logfile = C:\job\www\first\build.log
Think you can help? Login to answer this question!