MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
02/19/14 03:55 PM (11 years ago)

Google Play Services not Showing Up, Yet I Have Them installed...

So my app keeps crashing as soon as I try and launch anything from within the app (going to one of my options). I've updated to 4.0 SDK and have installed Google Play Services. For whatever reason Google Play Services doesn't show up (and the way to choose which version of SDK I'm using seems to have changed as well). Here is a screenshot of what I get: http://imgur.com/6LarM5l Any ideas? I'm hoping by solving this it will solve the issue of my app crashing. Thanks in advance!
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/19/14 04:08 PM (11 years ago)
Try checking to make sure your procedure is close to this: https://www.buzztouch.com/files/howtos/GPSRefBT.pdf Cheers! -- Smug Edit: Also, if you ever update your google play services to the next version, you have to do it all over again...
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/19/14 04:25 PM (11 years ago)
Was able to add the google play services from that smug! Thanks! However, when I removed the google-play-services.jar, i got some errors on my maps.java file. Also, my app continues to crash... Here is the logcat: 02-19 15:21:42.077: E/AndroidRuntime(2070): FATAL EXCEPTION: main 02-19 15:21:42.077: E/AndroidRuntime(2070): Process: com.c3800mt, PID: 2070 02-19 15:21:42.077: E/AndroidRuntime(2070): java.lang.StackOverflowError 02-19 15:21:42.077: E/AndroidRuntime(2070): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method) 02-19 15:21:42.077: E/AndroidRuntime(2070): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:547) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.content.res.Resources.getCachedStyledAttributes(Native Method) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.content.res.Resources.access$000(Resources.java:73) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.content.res.Resources$Theme.obtainStyledAttributes(Resources.java:1365) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.content.Context.obtainStyledAttributes(Context.java:413) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:122) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:93) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:72) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.loadAnimator(FragmentManager.java:743) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:958) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.AnimatorSet.start(AnimatorSet.java:605) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:980) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.app.FragmentManagerImpl$5.onAnimationEnd(FragmentManager.java:974) 02-19 15:21:42.077: E/AndroidRuntime(2070): at android.animation.Animato I can't seem to make heads or tails of it... any idea?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/19/14 04:30 PM (11 years ago)
Check where you added Google Play services in your properties… make sure that 'Is Library' is NOT checked. We'll go from there if need be… Cheers! -- Smug
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/19/14 04:34 PM (11 years ago)
Smug, Made sure 'Is Library' is NOT checked. As soon as I delete google play services I'm getting a bunch of errors in my BT_screen_map.java file.
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/19/14 04:39 PM (11 years ago)
You don't want to delete google play services… it needs to be there… but the 'google-play-services-jar' file, located under the 'libs' directory of your project, should be removed. You need one or the other, but not both. And if you're using google 'anything', you need the Google Play services. The 'jar' file is just a placeholder to keep the project from exploding in red… Do a quick check to make sure you have the GPS, but not the jar, and that the GPS is in your properties as shown in the tutorial. Android is a bit touchy; don't be discouraged. It won't be much longer and this will be old news… :) Cheers! -- Smug
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/19/14 04:44 PM (11 years ago)
Smug is doing a rocking job of getting you going! I also have this video that shows how to deal with the BT v3 project files, including all the Google Play Stuff: http://www.youtube.com/watch?v=UgurXKgP2AE Keep in mind that maps DO NOT work on the emulator...you have to run them on a real device to see the tiles. Same with any other Google Play Services based stuff, which is not supported on the emulator. Mark
 
@rob
Code is Art
Profile
Posts: 115
Reg: Dec 10, 2013
Alabama
8,800
like
02/19/14 10:01 PM (11 years ago)
@MM2000, just a guess but I have seen folks with the same issue as you before. Android is very picky so you must follow the provided instructions exactly as written. I have seen a couple of folks that thought that it made sense to use the very latest Android build target of 4.4.2 to build their project but once they dropped back to Android 4.0 (as the instructions show) the crashing app issue disappears. This may not be your issue but thought I would mention it
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/19/14 10:09 PM (11 years ago)
I compile all my Android apps using the Android 3.0 SDK as the target build, and I don't experience any crashes at all! Mark
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/20/14 10:44 AM (11 years ago)
@rob, I'm making sure i'm on 4.0 android (as well as trying 4.0 api) but still getting the crash. Again, whenever I delete the google_play_services.jar file like smug says in his documentation, i get an error on my maps and can't export. Not quit sure what i'm doing wrong, never had this problem with android before...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/20/14 10:49 AM (11 years ago)
Hello, The maps stuff is totally different now with Buzztouch v3. You'll want to choose Android 3.0 API in your preferences section for your project. That one always works for me. And you need to make sure that you have the Google Play Services imported into Eclipse, and that your BT project links to that in the preferences section. What sort of errors are you getting exactly? That'll help us debug. Mark
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/20/14 10:55 AM (11 years ago)
@Mark, you're always the man who seems to help me out! I'm downloading 3.0 sdk at the moment (only had 4.0 and above installed). I posted my logcat above, but not sure that's what you're looking for. Are you talking about the error i get when i delete google_play_services.jar?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/20/14 11:02 AM (11 years ago)
Did you check out the video I referenced above? It shows exactly how to remove that file and everything! Mark
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/20/14 02:50 PM (11 years ago)
Mark, Just watched your video. As soon as I delete google_play_services_remove.jar I get errors on BT_screen_map.java file (tons of errors). Any idea why? Should I uninstall and re install google play services? Can't seem to figure out what is going wrong...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/20/14 02:54 PM (11 years ago)
Try hitting F5 to refresh your project, and see if that helps. Also, maybe go back into the properties for your project and make sure that the Google Play Services are referenced (uncheck as a Library) correctly. You do have the Google Play Services imported into your Eclipse workspace, correct? Not just downloaded via the SDK? Mark
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/20/14 02:59 PM (11 years ago)
Here's the strange thing... When I go back into my project properties, there is a red 'X' where the reference for google play services lib is (as opposed to the green check box that is there when I apply it...). However I am importing google play services correctly. I tried both yours and smugs way...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/20/14 03:01 PM (11 years ago)
If there's a red x, then it's not linked correctly. I'd highlight that entry, hit Remove/Delete, and then add it back. That should hopefully take care of it! If it keeps changing back and forth, then maybe exit Eclipse and come back in.
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/20/14 03:06 PM (11 years ago)
Done all of that numerous times... including closing eclipse and reopening it...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/20/14 03:09 PM (11 years ago)
If you'd like, I can do a TeamViewer session with you to try and get things working. Just send an email to MrkFleming at gmail dot com, and we can set it up. Mark
 
MM2000
Aspiring developer
Profile
Posts: 207
Reg: Sep 06, 2011
Los Angeles
2,820
like
02/20/14 03:24 PM (11 years ago)
email sent
 

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.