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
kanaksony
Posts: 571
Registered: ‎04-11-2009
Accepted Solution

Error: Repackaging Android Application

Hi all,

 

I am trying to port an android app to BB 10 platform. While signing it from Eclipse Plug-in I am getting an error 

 

 

Packaging failed:-1

E:\Android_software\eclipse>set LIB=E:\Android_software\eclipse\plugins\net.rim.ajde_1.5.2.201302260701\blackberry.tools.SDK\bin\\..\lib

E:\Android_software\eclipse>java -Djava.awt.headless=true -Xmx512M -cp "E:\Android_software\eclipse\plugins\net.rim.ajde_1.5.2.201302260701\blackberry.tools.SDK\bin\\..\lib\BARPackager.jar;E:\Android_software\eclipse\plugins\net.rim.ajde_1.5.2.201302260701\blackberry.tools.SDK\bin\\..\lib\Apk2Bar.jar" net.rim.tools.apk2bar.Apk2Bar E:\Work\Codes\Android\yalla_emirates\MyApp\bin\MyApp.apk E:\Android_software\android-sdk-windows\ -t "E:\Work\Codes\Android\yalla_emirates\MyApp\dist\Android 2.3.3"
Apk2Bar version 1.5.2
Research In Motion Ltd ? 2012 All rights reserved.
[MyApp.apk]:smileysad:AndroidManifest.xml) uses-feature: android.hardware.telephony:required minimal Tablet OS version=10.0.6:impact=2
[ERROR] [MyApp.apk]:Application ID is empty. //WHAT DOES IT STAND FOR????
java.lang.NullPointerException
at net.rim.tools.apk2bar.Apk2Bar.formatID(Apk2Bar.java:799)
at net.rim.tools.apk2bar.Apk2Bar.createBarManifestFile(Apk2Bar.java:644)
at net.rim.tools.apk2bar.Apk2Bar.packageBar(Apk2Bar.java:460)
at net.rim.tools.apk2bar.Apk2Bar.main(Apk2Bar.java:312)
[ERROR] [MyApp.apk]:Manifest Exception during packaging: E:\Work\Codes\Android\yalla_emirates\MyApp\dist\Android 2.3.3\MyApp.bar
net.rim.tools.bar.ManifestException: [ERROR] MANIFEST.MF: Invalid value '' for attribute 'Application-Id'.
at net.rim.tools.bar.BarPackager.createBarImpl(BarPackager.java:462)
at net.rim.tools.bar.BarPackager.createBAR(BarPackager.java:129)
at net.rim.tools.apk2bar.Apk2Bar.packageBar(Apk2Bar.java:465)
at net.rim.tools.apk2bar.Apk2Bar.main(Apk2Bar.java:312)
[MyApp.apk]:smileyfrustrated:ummary: [5]=2; [4]=0; [3]=0; [2]=1; [1]=0;
Summary: Total Apk files # 1 succeeded: 0 skipped: 0 failed: 1
Summary: [5]=2; [4]=0; [3]=0; [2]=1; [1]=0;
Impact Legend: [5]=Severe; [4]=High /context; [3]=Medium /context; [2]=Medium-low /context; [1]=Minor;

 

Please help me in resolving this issue..

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009

Re: Error: Repackaging Android Application

I am getting same issue by Command line tools and Online Tool for Android is also failing.. 

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
BlackBerry Development Advisor
jjasmann
Posts: 245
Registered: ‎01-08-2013
My Carrier: Bell

Re: Error: Repackaging Android Application

Hey Kanak,

 

What's the package name of your app? Do you have the latest command-line tools installed?

 

    Justin

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009

Re: Error: Repackaging Android Application

[ Edited ]

Yes Justin, I do have lateset command line tools, have downloded 2 days earllier only.. This is basic XML

 

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="com.yallaemirates.YallaEmirates"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8" />

 

<application
android:name=".UILApplication"
android:icon="@drawable/logo"
android:label="@string/app_name"
android:theme="@style/AppTheme" >

 

 EDIT : I have tried with following also, but same error takes place - 

<application

android:name="com.yallaemirates.YallaEmirates.UILApplication"

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009

Re: Error: Repackaging Android Application

Are RIM Representatives responsible enough to reply questions on Forums??

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
BlackBerry Development Advisor
asotona
Posts: 5
Registered: ‎02-13-2013
My Carrier: O2 CZ

Re: Error: Repackaging Android Application

Hi,

The error indicates some problem with your application package name.

Could you, please, try to run

<Android SDK installation>/platform-tools/aapt d badging <your project>/bin/<your app>.apk

so we can investigate what could be wrong.

 

Thanks,

Adam

Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009

Re: Error: Repackaging Android Application

Hi Adam,

 

Please find the attached Result of aapt command. Right now, I have commented all the permissions related stuff in Manifest, working with basic UI once. Let, me know if it requires any change.

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009

Re: Error: Repackaging Android Application

Any updates on above..??

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.
BlackBerry Development Advisor
asotona
Posts: 5
Registered: ‎02-13-2013
My Carrier: O2 CZ

Re: Error: Repackaging Android Application

I don't see anything unusual in the Manifest. 

Now I can only suggest you to send us the APK for verification.

Please use plain text.
Developer
kanaksony
Posts: 571
Registered: ‎04-11-2009

Re: Error: Repackaging Android Application

Thanks Adams, I will send you the APK by tomorrow morning, as right now I am not at work and don't have access to APK.  

 

 

Also, I would like to know we are using several 3rd party APIs like Flurry, PushWoosh, Twitter, Facebook, PayPal etc.. Are using these matter? But, currently, I have commented and removed all permissions sort of stuff from Manifest. Only UI specific items are there..

Regards,
Kanak Sony
------------------------------------------------------------------------------------------
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Please use plain text.