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
New Contributor
varun_a
Posts: 4
Registered: ‎04-04-2013
My Device: Z10
Accepted Solution

result::failure -9 when deploying

Hi,

 

I am trying to deploy my android app from eclipse on to my blackberry Z10 running 10.0.9.422 and i am unsuccessfull at it. 

 

Here is the actual error that i am receiving. 

 

Failed to deploy project XXXX
Info: Sending request: Install
Info: Action: Install
Info: File size: 8659959
Info: Installing ...
Info: Processing 8659959 bytes
Info: Progress 0%...
Info: Progress 49%...
Info: Progress 50%...
Info: Progress 100%...
actual_dname::com.xxx.xxxx.testEPPwDTJahv0UbAeaecXksgI
actual_id::testEPPwDTJahv0UbAeaecXksgI
actual_version::1.0.3.0
result::failure -9

 

After this error, I could see the app icon on my Z10, but when i try to access it, it says' Initializing. Please wait...' and the app crashes thereafter. 

 

What does failure -9 indicate and any idea on what's the issue/resolution might be? 

 

Any help is greatly appreciated.

 

Thanks,

-Varun 

Please use plain text.
BlackBerry Development Advisor (Retired)
jjasmann
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: result::failure -9 when deploying

Hey Varun,

 

Typically a failure -9 on deployment means that the app contains an unsupported library.

 

Would you be able to run apk2barVerifier and post the output?

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Please use plain text.
New Contributor
varun_a
Posts: 4
Registered: ‎04-04-2013
My Device: Z10

Re: result::failure -9 when deploying

Hi Justin, 

 

I was able to figure out the unsupported libraries from the apk verifier. After little research, this is how I made the deployment to work. 

 

My app was using com.google.android.maps package. So, I edited the android manifest file to reflect the below line.

 

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

 

After this change, even though the 'Verify apk' option from eclipse is showing me the same warnings, I was able to deploy the app to my Z10 and had it to work. 

 

Thanks,

-Varun 

Please use plain text.
BlackBerry Development Advisor (Retired)
jjasmann
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: result::failure -9 when deploying

That's excellent. 

 

Just to note, the verifier will continue to throw warnings as long as the Google Maps entry is in the manifest.

 

The workaround for Google Maps is shown here: https://developer.blackberry.com/android/apisupport/apisupport_mapping_support.html

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Please use plain text.
New Contributor
varun_a
Posts: 4
Registered: ‎04-04-2013
My Device: Z10

Re: result::failure -9 when deploying

Thanks for the info. Justin. I will try to implement the suggested workaround.
Please use plain text.