Wes
Lost but trying
Profile
Posts: 29
Reg: Jul 15, 2013
Earth
3,990
03/20/14 07:46 AM (10 years ago)

Confused (Android 4.0)

Hi, Now that we can only prepare a project for Android 4, I created a quick test app to try it out. I have major problems.. When I put the app into eclipse, it is now impossible to run, and is full of errors. When I used to save as an older Android version, getting rid off errors was to simply change the project build target within properties. This doesn't seem to be the case now, because it doesn't matter which I choose, the app is riddled with errors (these change depending on which build is chosen). I'm obviously missing something and I'd be grateful if someone could point me in the right direction. Thanks
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
03/20/14 08:13 AM (10 years ago)
What errors are you getting?
 
Wes
Lost but trying
Profile
Posts: 29
Reg: Jul 15, 2013
Earth
3,990
like
03/20/14 08:23 AM (10 years ago)
They vary, eg. When Android 4 is selected as the project build target I get 12 errors, I took a screenshot but can't see a way to attach it. So I have pasted them below. Description Resource Path Location Type bt_screen_htmldoc cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 79 Java Problem documentTypeIcon cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 82 Java Problem error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version'). AndroidManifest.xml /testapp line 66 Android AAPT Problem bt_screen_customhtml cannot be resolved or is not a field BT_screen_customHTML.java /testapp/src/com/testapp line 80 Java Problem webView cannot be resolved or is not a field BT_screen_customHTML.java /testapp/src/com/testapp line 83 Java Problem bt_screen_menulistsimple cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 110 Java Problem listView cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 153 Java Problem listViewEnd cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 149 Java Problem titleView cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 522 Java Problem bt_screen_menulistsimple_item cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 517 Java Problem downloadButton cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 87 Java Problem openWithButton cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 86 Java Problem
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
03/20/14 08:45 AM (10 years ago)
Is this the same app app? Or did you create a new one? Delete the google play library folder. Also the api is 3.2 if Im not mistaken
 
Wes
Lost but trying
Profile
Posts: 29
Reg: Jul 15, 2013
Earth
3,990
like
03/20/14 08:53 AM (10 years ago)
Hi How do I delete the google play library folder? I can't see one With 3.2 selected the errors are as follows: Description Resource Path Location Type The method setHomeButtonEnabled(boolean) is undefined for the type ActionBar BT_activity_host.java /testapp/src/com/testapp line 370 Java Problem webView cannot be resolved or is not a field BT_screen_customHTML.java /testapp/src/com/testapp line 83 Java Problem bt_screen_customhtml cannot be resolved or is not a field BT_screen_customHTML.java /testapp/src/com/testapp line 80 Java Problem downloadButton cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 87 Java Problem Attribute minSdkVersion (14) is higher than the project target API level (13) AndroidManifest.xml /testapp line 1 Android ADT Problem openWithButton cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 86 Java Problem documentTypeIcon cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 82 Java Problem bt_screen_htmldoc cannot be resolved or is not a field BT_screen_htmlDoc.java /testapp/src/com/testapp line 79 Java Problem error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version'). AndroidManifest.xml /testapp line 66 Android AAPT Problem listViewEnd cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 149 Java Problem listView cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 153 Java Problem bt_screen_menulistsimple_item cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 517 Java Problem titleView cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 522 Java Problem bt_screen_menulistsimple cannot be resolved or is not a field BT_screen_menuListSimple.java /testapp/src/com/testapp line 110 Java Problem
 
Wes
Lost but trying
Profile
Posts: 29
Reg: Jul 15, 2013
Earth
3,990
like
03/20/14 10:04 AM (10 years ago)
Problem solved. If anyone else has this issue, all you need to do is follow SmugWimp's tutorial for adding the Google Play Services Library. https://www.buzztouch.com/files/howtos/GPSRefBT.pdf
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
03/20/14 10:06 AM (10 years ago)
I havent made an android app in awhile. When I get back to the pc ill let you kniw where to locate it.look in every filder in the project. Make sure you change the api in in the manifest and add the target sdk api under that.also it might not be 3.2, try a higher api
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
03/20/14 10:26 AM (10 years ago)
Cool I learned something new
 

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.