1

I'm trying to debug a ported android application on my Blackberry Playbook, but it gives me this error whenever I try to launch it as a Blackberry Android Launch:

An internal error occurred during: "Launching The Dot Game Playbook".
com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData(Lorg/eclipse/core/resources/IProject;)Lcom/android/sdklib/xml/ManifestData;

I can't figure out what's causing this error. The app runs fine in the android emulator, but won't work with the blackberry tools. I've tried cleaning the project, updating the android SDK, restarting Eclipse, and reinstalling the Blackberry plugins, but nothing's worked. Any ideas?

EDIT: Here's my AndroidManifest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.g33kworld.thedotgame"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="10"
    android:targetSdkVersion="10" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" android:allowBackup="true">
    <activity
        android:name="net.g33kworld.thedotgame.DotGame"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

leon.anavi
  • 78
  • 5
Techwolf
  • 1,228
  • 13
  • 32
  • Perhaps the debug token on the device has expired. Have you checked it? – Ted Hopp Nov 14 '12 at 05:20
  • I created the debug token when I started trying to test it. I just checked it, it expires on December 12. – Techwolf Nov 14 '12 at 05:22
  • Hm. What's in your manifest file? – Ted Hopp Nov 14 '12 at 05:24
  • What happens if you change the target sdk version from 15 to 10? – Ted Hopp Nov 14 '12 at 05:33
  • Oh, I see that you edited the post. Was the target 10 all along? Also, I assume that the apk passed the compatibility tests with flying colors? – Ted Hopp Nov 14 '12 at 05:34
  • No, I just noticed that and changed it. I did a clean and build, but it gave me the same error so I don't think that's it. – Techwolf Nov 14 '12 at 05:35
  • Can you run the app on the BB simulator? – Ted Hopp Nov 14 '12 at 05:39
  • Oh, I think the min sdk version also needs to be 10. – Ted Hopp Nov 14 '12 at 05:39
  • I tried changing it, no luck. Also, it passed the online compatibility test with no errors. The online packager works fine, too. – Techwolf Nov 14 '12 at 05:44
  • 1
    The only other thing I'd suggest is to try running it with the command line tools or with the BlackBerry Graphical Aid or the DDPB installer tools. (Anything outside of Eclipse.) Otherwise, I'm out of ideas. – Ted Hopp Nov 14 '12 at 05:50
  • It worked fine when I compiled it with the [Blackberry Online Packager](https://bdsc.webapps.blackberry.com/android/bpaa/) and installed it with DDPB, but I'd like to know how to get Eclipse working (since debugging will be a real pain this way). – Techwolf Nov 14 '12 at 05:56
  • I have the same issue. I mention one thing - in Debug Configuration on 'Project' tab there in no activity to specify as launch activity. Do you have the same issue? – Subtle Fox Nov 15 '12 at 09:38
  • When I try to open the debug configuration, I get the error: `An error has occurred. See error log for more details. com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData(Lorg/eclipse/core/resources/IProject;)Lcom/android/sdklib/xml/ManifestData;` – Techwolf Nov 16 '12 at 04:52

2 Answers2

4

BlackBerry Plug-in 1.3 Beta is not compatible with ADT (Android Development Tools) version 21. I also experienced this bug on both Windows 7 and Mac OS 10.7.5.

After an hour I finally found a solution (workaround):

  1. Uninstall ADT and BlackBerry plug-in from Eclipse
  2. Manually download ADT 20 from here
  3. Install ADT as Eclipse plug-in from the downloaded archive
  4. Install BlackBerry plug-in 1.3 Beta

Please note that I have also posted the solution with more details at my personal site

onkar
  • 4,427
  • 10
  • 52
  • 89
leon.anavi
  • 78
  • 5
  • Yes, I've heard that this is the problem from a few other places now as well. I think I'll just use the command-line tools and wait for the next release of the plugin rather than downgrading ADT. – Techwolf Nov 17 '12 at 22:50
2

Did you install beta version of BB plugin for eclipse? please refer this link for more.

onkar
  • 4,427
  • 10
  • 52
  • 89
Vinoth
  • 21
  • 1