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™ Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha
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]Smiley SadAndroidManifest.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]Smiley Frustratedummary: [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
Highlighted
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

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
Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
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
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

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
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

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
Retired
Posts: 5
Registered: ‎02-13-2013
My Device: Q10
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

Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

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
Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

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
Retired
Posts: 5
Registered: ‎02-13-2013
My Device: Q10
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.

Developer
Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

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