NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Installing app on device errors

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
robing



Joined: 22 Jan 2014
Posts: 1
Location: Napier, New Zealand

PostPosted: Wed Jan 22, 2014 10:54 pm    Post subject: Installing app on device errors Reply with quote

I am trying to install the demo app CordovaMapsSample1 on my phone which is Android 2.2 froyo. Looking at the Android device API that should be API level 8.
I am getting the below errors.
I get the same errors for Netbeans 7.4 and 8.
I have tried Cordova 3.3.1-0.1.2 and 3.1.0-0.2.0

In the SDK manager i have installed Android 2.2 API 8

I have seen posts that have said to update the manifest.xml file android:minSdkVersion but I can't see where to do this as this file seems to be generated when run.

Any help on this would be great.



Code:

Installing app on device...

exec: adb -s 80A354043049844311 install -r "/var/www/CordovaMapsSample1/platforms/android/bin/CordovaMapsSample1-debug-unaligned.apk"

Error: n error occurred while running the android project.
/var/www/CordovaMapsSample1/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
ERROR: Failed to launch application on device: ERROR: Failed to install apk to device:    pkg: /data/local/tmp/CordovaMapsSample1-debug-unaligned.apk
Failure [INSTALL_FAILED_OLDER_SDK]


    at ChildProcess.<anonymous> (/usr/lib/node_modules/cordova/src/run.js:67:22)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Process.ChildProcess._handle.onexit (child_process.js:802:5)
[ 'adb -s 80A354043049844311 install -r "/var/www/CordovaMapsSample1/platforms/android/bin/CordovaMapsSample1-debug-unaligned.apk"',
  null,
  '\tpkg: /data/local/tmp/CordovaMapsSample1-debug-unaligned.apk\r\nFailure [INSTALL_FAILED_OLDER_SDK]\r\n',
  '689 KB/s (319461 bytes in 0.452s)\n' ]



/var/www/CordovaMapsSample1/platforms/android/cordova/node_modules/q/q.js:126

                    throw e;
                          ^
ERROR: Failed to launch application on device: ERROR: Failed to install apk to device:    pkg: /data/local/tmp/CordovaMapsSample1-debug-unaligned.apk
Failure [INSTALL_FAILED_OLDER_SDK]


child_process.spawn(/var/www/CordovaMapsSample1/platforms/android/cordova/run,[--device]) = 8
/var/www/CordovaMapsSample1/nbproject/build.xml:267: exec returned: 1
BUILD FAILED (total time: 18 seconds)


Thanks
Back to top
denwin



Joined: 21 Jul 2017
Posts: 1

PostPosted: Fri Jul 21, 2017 9:07 am    Post subject: Demo app installed on myside perfectly. Reply with quote

Demo app is worked perfectly on my side without any issue.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo