mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
07/04/13 08:07 PM (12 years ago)

Hmm, some errors in my Eclipse/Android project?

Hi guys, Tackeling android again. Noticed a few things changed, did my best to comply. Now I have these random errors in Menu Image plugin. Screenshot: https://www.dropbox.com/s/oks3cdp4fvh069a/Screen%20Shot%202013-07-04%20at%208.02.06%20PM.png It's set for Google 2.2. - 8 as usual. Every other plugin seems fine? Of course this error only showed up AFTER I had opened the file in eclipse. Any help would be appreciated, Eclipse won't tell me what's wrong with these lines, LOL! David https://buzztouchmods.com
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/04/13 08:22 PM (12 years ago)
You only need the first Android definition in each XML file - delete the rest.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/04/13 08:28 PM (12 years ago)
Yes, @chris1 is correct. the reference to xmlns should be removed from the child layouts. You just need the xmlns reference in the mother layout. This will fix the error. But you will have to remove this from all the xml layout files whichever you open in the eclipse. Another short fix is to clean project and the errors will be gone.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/04/13 08:30 PM (12 years ago)
cleaning the project will fix it huh? I removed the references as instructed and it worked! To dig a little deeper... is it due to outdated plugins, or the updated eclipse yelling at outdated code? Never had to do this before! Cheers guys, thanks a ton. David https://buzztouchmods.com
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/04/13 08:33 PM (12 years ago)
Yes, cleaning the project will fix the error temporarily. But this error will pop up whenever you open the xml files and do some editing. The error is because of the new android sdk. The new android doesnot allow xmlns reference in the child layouts. And if you see all the xml layout files (of plugins) use older fashioned reference to the xmlns in child layouts too.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/04/13 08:53 PM (12 years ago)
Gotcha! Thanks! Unrelated problem, got the "Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY" error. Googled and saw that it was perhaps my emulator (avd), when creating a new AVD, no matter which device I choose, it only lets me set the target to "Android 4.2.2 - API Level 17", I'm guessing the error will go away when I can get it to Google 2.2 Level 8, however, no other options exist. https://www.dropbox.com/s/keks9krq1n5onft/Screen%20Shot%202013-07-04%20at%208.51.09%20PM.png Any ideas? Sorry to be a bother. David https://buzztouchmods.com
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/04/13 09:16 PM (12 years ago)
I assume you have downloaded all other google api's including 2.2. If thats the case, i have no idea why you are not getting option to set 2.2. The screen shot shows you have option only to set 4.2 android api...
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
07/05/13 01:25 AM (12 years ago)
I have long ago stopped bothering with Android emulators. Now I just use the actual device connected with USB cable. Learn about DDMS within the Eclipse and it will make your life easier.
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/05/13 05:45 AM (12 years ago)
See that's the thing, it's installed! https://www.dropbox.com/s/qyr0q4tfesp3u3h/Screen%20Shot%202013-07-05%20at%205.42.45%20AM.png Dusko, what device do you recommend? David https://buzztouchmods.com
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/05/13 05:47 AM (12 years ago)
Dumb dumb, I had to restart Eclipse. I always feel dumb while using Eclipse. I hate android with such a passion. Thanks guys. David https://buzztouchmods.com
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/05/13 07:52 AM (12 years ago)
Could always go with Android Studio. It seems to work better for me
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
07/05/13 08:19 AM (12 years ago)
>Dusko, what device do you recommend? Your mobile device, of course. If you have a mobile Android phone, connect it to the computer and enable USB debugging on the phone. In the Eclipse, right click of the mouse on the name of your app, then Run As, then within it, Run Configurations, click on tab called Target, then choose Launch on all compatible devices and then click on Run. This will bypass the simulator and will compile and run the app directly on the connected phone. In the Console window you will be able to see the process of compiling, sending to the device, launching the app on the device and that's it -- straight from Eclipse to the working app! In the right upper corner of Eclipse window, you should see DDMS, click on that and it should detect the connected devices. From that view, you will also be able to achieve screen shots from the connected phone, automatically giving you the images that later you have to enter into the Google Play forms when publishing the app on Google Play. As I have written in my other posts here, once you set everything up, the Eclipse turns into a non-problem. The key is not to download the zipped files from the BuzzTouch server, but to transfer only the latest config file directly into Eclipse and continue compiling from there.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.