Titanium Community Questions & Answer Archive

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

Error Failed Installing com.test: pkg: /data/local/tmpl/app.apk

I have created a sample hello world application and when I launch it using SDK 1.1 i get the following error

Failed Installing com.test: pkg: /data/local/tmpl/app.apk

My JAVA_HOME is pointed correctly in classpath

— asked August 10th 2010 by Ameya Thakur
0 Comments

1 Answer

  • You're using Titanium SDK version 1.1? You might consider upgrading to 1.4.0, the latest mobile SDK release and trying to generate a new project with that version.

    — answered August 10th 2010 by Kevin Whinnery
    permalink
    2 Comments
    • Hi Kevin,
      Thanks for the updates I have the latest one installed I have the following SDK which are installed on my Titanium

      1.1
      1.5
      API's 1.5
      1.6
      API's 1.6
      2.0
      API's 2.0
      API's 2.1
      till
      API's 2.2

      This is for the Andoid

      I have the screen shot there is no way of attaching that overe here

      This is from the trace

      [DEBUG] Device connected… (waited 0 seconds)
      [DEBUG] waited 0.064000 seconds on emulator to get ready
      [INFO] Installing application on device
      [DEBUG] C:\Ameya\android-sdk-windows\tools\adb.exe -e install -r C:\myProject\HelloWorld1\build\android\bin\app.apk
      [TRACE] D/AndroidRuntime( 209):
      [TRACE] D/AndroidRuntime( 209): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
      [TRACE] D/AndroidRuntime( 209): CheckJNI is ON
      [TRACE] D/AndroidRuntime( 209): — registering native functions —
      [TRACE] D/PackageParser( 47): Scanning package: /data/app/vmdl66382.tmp
      [TRACE] W/PackageParser( 47): /data/app/vmdl66382.tmp (at Binary XML file line #7): Requires newer sdk version #4 (current version is #2)
      [TRACE] I/installd( 28): unlink /data/dalvik-cache/data@app@vmdl66382.tmp@classes.dex
      [TRACE] D/AndroidRuntime( 209): Shutting down VM
      [TRACE] D/dalvikvm( 209): DestroyJavaVM waiting for non-daemon threads to exit
      [TRACE] I/dalvikvm( 209): DestroyJavaVM shutting VM down
      [TRACE] D/dalvikvm( 209): HeapWorker thread shutting down
      [TRACE] D/dalvikvm( 209): HeapWorker thread has shut down
      [TRACE] D/jdwp ( 209): JDWP shutting down net…
      [TRACE] D/dalvikvm( 209): VM cleaning up
      [TRACE] D/dalvikvm( 209): LinearAlloc 0x0 used 527764 of 4194304 (12%)
      [ERROR] Failed installing com.testt: pkg: /data/local/tmp/app.apk
      [TRACE] Failure [-12]
      [TRACE]
      [TRACE] D/dalvikvm( 47): GC freed 4607 objects / 219112 bytes in 391ms

      — commented August 10th 2010 by Ameya Thakur
    • hi Ameya

      you have all the Android SDK's but from kevin's reply and your trace info(line 7 from top) it shows that you do not have the Current Titanium SDK (1.4.0)

      try a new install of Titanium developer.

      — commented August 11th 2010 by Satta Ravi
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.