Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device
Accepted Solution

result::failure -9

Hi all,

I have en error (9) when I try to deploy my android app.

Is there a code list with error message, in order to understand what's wrong ?

 

Thanks.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.
Developer
Chambras
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook

Re: result::failure -9

unfortunatly there is not a table with error codes and their descriptions or how to fix them. Can you post the complete error you get a more detailed steps? Usually you need to make sure these things are done when you deploy a a device:

verify the apk

sign your apk

convert to bar

sign the bar 

deploy to device

Please use plain text.
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

Re: result::failure -9

Thanks for your response.

 

Here the full error :

 

Failed to deploy project XXXXX
Info: Sending request: Install
Info: Action: Install
Info: File size: 7517220
Info: Installing ...
Info: Processing 7517220 bytes
Info: Progress 0%...
Info: Progress 50%...
Info: Progress 100%...
actual_dname::fr.XXXXXX.testEJG5O7JbA7SrWVVVnHoRytw
actual_id::testEJG5O7JbA7SrWVVVnHoRytw
actual_version::1.0.0.0
result::failure -9

 

 

I do the same steps with a simply hello world and it works very well.

I succeed once a time to deploy my app and I get this error :

 

Status ERROR: net.rim.ajde code=4 Connecting 192.168.213.130 to ADB failed!   null children=[Status ERROR: net.rim.ajde code=0 Please check if the Android player was fully started when you got this error. If not, you can either increase the Android player launch timeout on the BlackBerry->BlackBerry Android Development Tools preference page or wait until the Android player is fully started and try again. null]

 

So I encrease the timeout.

 

The application was installed and when I tried to lunch it I get the loading, then I accept the permissions, loading again, then crash...

 

I want to deploy on the simulator.

 

Thanks if anyone get informations !

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.
Developer
Chambras
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook

Re: result::failure -9

Really weird. Did you try running the APK verifier on your project and see if you have any errors? Maybe that is why your hello world application works fine becuase it is simple and your real application since it is more complex has some errors that prevent it from installing properly on the emulator.

Please use plain text.
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

Re: result::failure -9

Yes, verify APK returns only warning and no errors

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.
Developer
Chambras
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook

Re: result::failure -9

You will have to use adb tools and check the logcat and see what is going on when you launch your application.

 

Please use plain text.
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

Re: result::failure -9

The app isn't launched anymore because there is failurre 9 while the deployement.

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.
BlackBerry Development Advisor
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10

Re: result::failure -9

This error (-9) may be a result of your application trying to use a shared library from Android that is not supported on the BlackBerry Runtime for Android Apps. Is your application using a shared library?

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Please use plain text.
Developer
fredoust
Posts: 75
Registered: ‎09-12-2012
My Device: Looking for a BB10 testing device

Re: result::failure -9

I found the guylty !

<uses-library android:name="com.google.android.maps" />

 

I removed the librairie but not the permission ...

---------
Mobile developer freelance - QtQuick - Cascades - WP7 - Android
My works : http://fdelgado.fr
Please use plain text.