Adding Google Maps to Android app - android

I am developing an Android App with Eclipse and the Android SDK on my mac and everything works fine. I am debugging on a Samsung Galaxy S5.
And I got the problem, that as soon as I add google-play-services_lib as library to my Android project and try to debug it again, my Eclipse uses every percent of my processor it gets and gets slower and slower till it freezes. I have to kill it on the commandline, otherwise it remains in this state and I can not work on.
Anyone faced the same problem? I could really need some help, because I don't know, how to solve that problem.
Kind regards
rholtermann

Related

Runing the emulator makes my whole computer crash

Android promted me to upgrade to 3.5 today so I have. Even since I've been having issues with the AVD and running my code on the emulator.
I've posted about my previous issues here
After those solutions still didn't allow me to run the app (different errors) I've decided to just uninstal and reinstall Android studio.
Now, every time I try to run it my whole computer crashes.
It starts with this screen popping (sorry for the terrible photo, had to be quick). It says emulator warning: crash service did not start.
And then this:
What am I supposed to do? Already completely uninstalled Studio.
Ok, I don't know exactly what the problem was but it seemed to be solved. As I mentioned, when I've unistalled and reinstalled before the problem persisted. Even if I've uninstalled all the devices from the avd and created new ones.
This time I've done the same but didn't just install a new device, but did it with a different version (Oreo 2 instead of 26). I'm not sure why but it works now.
You should create a new emulator whose settings reduce the size of the ram and memory.

Android app slow when installed from Android Studio, but runs fine when installed from adb

I'm not really sure how to word this.For some reason when I install an app that I'm working on from Android Studio it runs very slow (when an option is pressed it takes 10-20 seconds to register). But if I install the app from either my coworkers Android studio or adb from my own machine it works fine.
My specs are:
OS: Windows 10
Android Studio Version: 3.0.1
Phone OS: Android API 24
It was working fine this morning, but during the course of the day, something has happened. Has anyone run into this sort of problem before?
I'm using a Samsung Galaxy S8 physical device. I have tried a factory reset on the phone which worked for one install after I changed some things I'm back where I started. I have also restarted both the machine and phone multiple times. I'm at a loss as to what is going on. If you guys need any more info let me know. Also INSTANT RUN IS NOT ON.
EDIT: I'm at a total loss as to why this is happening. I've tried everything from restoring the phone, reinstalling Android Studio, changing wires, changing settings, but nothing is working. If anyone has a suggestion I will gladly try anything.
I've finally found a solid solution to my problem. I'm positive now that something went wrong with m usb drivers for windows 10. I went to this page https://answers.microsoft.com/en-us/windows/forum/windows_10-hardware/windows-10-slow-usb-30-transfer-speeds/a5e1eebb-74bb-4777-8902-5131f3e8ec3e and I completed the steps in method 1 and that did the trick for me. it took a while to find this out, but hopefully, someone else will find this helpful.
Have you compared your yesterday build and today build which is making your app slow. Any Significant change in code?
Have you set up breakpoints or similar? Some debugging options can significantly slow the app down at runtime. When this happens, if you disconnect the phone from ADB - e.g. pull out the cable - and it speeds up again, then it's likely related to your debug connection to that particular instance of Android Studio.

Why emulator is slow after Android Studio 2.3 update?

After I have updated my android studio to 2.3 & above, emulators become slow and also I am also using x86 system images. I have also tried to use Software Gles 2.0
as described in other recent answers but nothing is working.
After starting up the emulator it stops on main screen and becomes un-clickable anywhere.
Even Api 15 & 16 emulators slowed down even though they are not heavy.
I have also re-downloaded android sdk.
note: I do not want to use gennymotion or any other emulator
please provide any help regarding Android Emulator.
Try changing the grahics to Hardware-GLES 2. Then run your emulator to compare your result. I think it is much more faster.
I have tried all these options but nothing worked, its only working after I have uninstall and reinstall the new android studio 2.3.
Please read my blog for the correct solution.
http://www.remiblog.com/programming/android-emulator-slow-update-android-studio-2-3/

Android. Sudden problem with emulator, physical device works fine

I'm having some problem with developing an android app. Everything runs smooth until a while ago. Lately I've been debugging on a couple of different physical devices and everything works great on all of them. The other day when I tried to run the application in the emulator I got an error:
ERROR/JNIHelp(313): Native registration unable to find class 'android/debug/JNITest'.
Is this something to worry about? The app is supposed to be released today on the market but it doesn't feel right to release something that wont even load in the emulator. Since the app works seemingly flawless on all physical devices I've tested it might not be a problem?
Try -wipe-data ... if it doesn't work, delete the emulator images .. and if that doesn't work re-install the SDK .. No other fancy solution, afaik.

Android Emulator - No internet connectivity

I know that there are several threads posted about this issue, however I believe my problem to be a bit different:
I had my Android emulator working without any problems (using Eclipse plugin). I could start the emulator, run applications, and those apps would be able to connect to my computers internet. I then updated the Android SDK's (as I wanted to try out my application on 2.2). Since the update, the emulator will not connect to the internet. If I go to the browser, the page will not be displayed. I have tried everything - reverting back to the 2.1 SDK, even completely reinstalling Eclipse + Android, and the issue still remains.
I know that I have no firewall/proxy type issues. What could be causing this? Does anyone have any ideas? I'd greatly appreciate it...
Thanks!
The answer to my question:
Upgraded to SDK 2.3 - now no emulators have connectivity
should help
In particular "It doesn't seem to like systems that have 'obtain DNS automatically' set. I changed it to manual set to Norton's Public DNS and the emulator browser works straight off "

Categories

Resources