Solution: Application Installer abnormal process termination

You must Login before you can answer or comment on any questions.

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.log
Setting 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: 15
It 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.

— asked 10 months ago by Jason Priebe
2 Comments
  • Good to here, and good preventive suggestions.

    — commented 5 months ago by Ashish Nigam

  • how to get the following. am also having the same problem

    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: 15

    — commented 2 months ago by deepthi lakshmi

8 Answers

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.

Thanks!

Same here and finally resolved the issue. Great and thanks!!

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

Your Answer

Think you can help? Login to answer this question!