Undroid and Android SDK m5

With the release of Android SDK m5-rc15, NetBeans' unofficial plugin Undroid is not working. Google has made some changes in its design which has brought up this bug. I am providing a manual workaround for it:-

Go to Netbeans_ project_folder\your_android_application\ and open the file AndroidManifest.xml

Now make the following changes:-
  • The class= parameter throughout the AndroidManifest.xml file has been renamed, replace all instances of class= with android:name=.
  • The android:value= parameters used throughout the AndroidManifest.xml file have been renamed, replace all android:value= occurrences with android:name=.
  • The android:id= parameters used throughout the AndroidManifest.xml file have been renamed, replace all android:id= occurrences with android:name=.
  • In intent-filter, the previous type, scheme, authority and path tags are now replaced with a single data tag and uses attributes android:mimeType, android:scheme, android:host and android:path to replace those tags respectively. A new attribute: android:port has been added as well. Without these changes, intent-filters will not work correctly.
For more changes refer to android upgrading page.

After all the changes has been made, re- build your application in NetBeans. Now, it should work.

Comments

Jay said…
thanks a ton dude!!

I was real fed up seeing the error..
Amit Kumar Saha directed me to this post.

Great job.
thanks again.
Hey Jay. I am glad that the post helped you.
myhrvod said…
Thank you for your tips,but when i run the application,it occur the errors like this:
Unable to access jarfile ..\framework\dx.jar
E:\nb\AndroidApplication2\nbproject\build-impl.xml:391: exec returned: 1
BUILD FAILED (total time: 0 seconds)

what does it mean? and how can I solve this problem?
myhrvod said…
First Thank you for your post to help me.but after I re-build the project,the application can't run,it occur the erros like this:

Unable to access jarfile ..\framework\dx.jar
E:\nb\AndroidApplication2\nbproject\build-impl.xml:391: exec returned: 1
BUILD FAILED (total time: 0 seconds)

what does it mean? and how can solve this problem?
thank you again!
Hi myhrvod

I am away from my home town for some personal reasons. I am not being able to give much time on my pc. Can't give you a solution right away. I will provide you a solution as soon as I am back to work.

In the meanwhile I request other readers to provide solution to myhrvod's problem.

Thanks for your patience.
Anonymous said…
Good morning,
Excuse for an English school
Sub NetBeans 6.1 / Linux 2.6 / Java 1.6 at almost the same error:
...
5 warnings
no classfiles specified
/home/scorpion/java/devandroidTEST/nbproject/build-impl.xml:391: exec returned: 1
...
HOWEVER the execution of the script ./nbproject/build-impl.xml in a terminal works correctly!
NetBeans PROBLEM?
Thank you for a solution,
Claude.
Anonymous said…
Good morning,
Excuse for an English school
Sub NetBeans 6.1 / Linux 2.6 / Java 1.6 at almost the same error:
...
5 warnings
no classfiles specified
/home/scorpion/java/devandroidTest/nbproject/build-impl.xml:391: exec returned: 1
...
HOWEVER the execution of the script ./nbproject/build-impl.xml in a terminal works correctly!
NetBeans PROBLEM?
Thank you for a solution,
Claude.
Haden said…
Thanks. I was going crazy with this issue. It really helped me out.

Popular posts from this blog

Connecting Ubuntu Client to a VPN setup using ALGO

Sony CyberShot DSC-S3000 Review/ Sample Pictures

Installing Twilio for Python in Ubuntu