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 ofclass=withandroid:name=. - The
android:value=parameters used throughout the AndroidManifest.xml file have been renamed, replace allandroid:value=occurrences withandroid:name=. - The
android:id=parameters used throughout the AndroidManifest.xml file have been renamed, replace allandroid:id=occurrences withandroid:name=. - In
intent-filter, the previous type, scheme, authority and path tags are now replaced with a single data tag and uses attributesandroid:mimeType,android:scheme,android:hostandandroid:pathto replace those tags respectively. A new attribute:android:porthas been added as well. Without these changes, intent-filters will not work correctly.
After all the changes has been made, re- build your application in NetBeans. Now, it should work.
8 comments:
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.
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?
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.
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.
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.
Thanks. I was going crazy with this issue. It really helped me out.
Post a Comment