android google play libs using too much CPU usage - java

I am trying to develop an apps with google maps features, so I followed a few tutorials and I realized that making this apps requires the project to use google play service libs library.
But I have problem with the CPU usage when trying to run the project on my AVD which cause the eclipse won't even run the project and keeps loading and I had to force close my Eclipse.
My task manager
So I tried to pinpoint the problem by making new blank android project and try to run the project as I follow the tutorial step by step.
And I found out that as soon as I add the google play libs to my project, I can't run the project anymore because of the CPU usage problem.
My library used
I have downloaded the latest verison of the google play service (rev 27) from my SDK manager.
Can anyone please help me? thanks a lot..

Problem solved when I stopped using Eclipse and started using Android Studio

Related

How do I change the SDK app engine on Eclipse

I am pretty new to coding. I help run a small charity and a friend of a friend set up a website for us which I have been running for the last few years. I have managed to sort things out with a lot of copy and pasting and trial and error but I have now hit a wall.
I could not deploy to the server so I went back and reinstalled everything. I got further with the process this time but then it told me to update the SDK. I downloaded the newest SDK but cannot add this to my project in eclipse.
I have learned a lot over the years but I am still pretty dense when it comes to certain things. Find error image here
If anyone can help and explain it in laymen terms I'd appreciate it.
Many Thanks
Here you can find information about how to manage the Cloud SDK in Cloud Tools for Eclipse.
You can either allow Cloud Tools for Eclipse to download and install
an SDK for you, or you can point it to a specific SDK you've installed
outside of Eclipse.
Managing the SDK for Your Project

Android Studio - package java.awt.image does not exist

I have a problem running my project on Android Studio. I am working on an Android project that has a native Java library inside it. It was running fine all the time. But suddenly when I open Android Studio, I find this error:
There is also an error in the .gradle of the project:
It says that URI is not registered.
When Android Studio is started, I find this message:
It seems that there is something wrong in Java configuration, but I can't find out what is the problem?
It was running fine all the time
Not on Android, it wasn't.
It seems that there is something wrong in Java configuration
No. You are using classes that are not part of the Android SDK.
The java Swing and AWT API are not part of the Android SDK and thus aren't including with it. You must find an Android equivalent image library to use in your app. There are few good ones around just depends on what functionality you need to have available to you in you app. Try searching Picasso and or Volley. Picasso is very popular and well known. it has a lot of feature including networking functionality for loading images from the web. The Volley library isn't an image library but an networking library that contains some predefined classes for loading images over the internet.
So this just happened to me. I'm not 100% on the details of how I got it working again, but its roughly this (on my Mac):
Quit Android Studio
I went to ~/Library/Application%20Support/ and deleted the AndroidStudio3.2 directory
I relaunched Android Studio and I got some warning dialog about plugins not existing.
Chose the button that is something about reinstalling or fixing (or whatever isn't deleting or ignoring)
Another dialog comes up. There are a bunch of plugins that are in red. Deselect all the red ones. Then reselect all those ones that were previously red.
Android Studio asks you something and if you want to restart Android Studio. Pick the thing that includes restarting.
And once Android Studio restarts, chose to rebuild your project, and then it worked.
Good Luck and I hope this works for you too.

How can I get the newest version of google play services on an AVD?

I'm trying to develop an Android app that has a native Google Maps control. Seems simple enough, but unfortunately I've run into a lot of trouble setting it up.
I have very carefully followed the instructions here multiple times with no success. Every time I try to load up my app, I get the message <my app> won't run without Google Play services, which are not supported by your device. I have confirmed in the settings that I do in fact have Google Play services on the device.
I have tried to uninstall and reinstall downloaded google services apk's, but abd does not allow me to uninstall it with the error DELETE_FAILED_INTERNAL_ERROR, I assume it is because I don't have root access.
You need to update your SDK and install the latest Google Play Services library under "Extras" section. The AVD can be launched using "android" binary under your SDK tools folder.
So I found the answer to my own question. I made a dumb mistake...
In my manifest, I entered my api key where it says API_KEY: android:name="com.google.android.geo.API_KEY but it should just be API_KEY. Changing this, and using Google Play services 9 instead of 10 fixed it.

Android development issues using eclipse mars

I'm having an issue starting my android development as I've tried multiple solutions off this site for getting past eclipse not building blank activities and its not letting me begin my development and I have also tried updating and downloading the SDK but all my attempts have all deemed unsuccessful, could this be because I'm using eclipse mars.
My recommendation would be to start using intelliJ IDEA. Just becouse you can do almost everything inside that one program and it seems to be faster than android studio for me.
Here is the download link: https://www.jetbrains.com/idea/

How to target Android 4.1 Jelly Bean in Eclipse

I am new to Android development, I just got Eclipse for the first time a few days ago.
I've made a simple app in Eclipse which I've got running through the emulator, but it's pointed at Android 4.3.
In Eclipse I've gone to Window -> Android Virtual Device Manager -> Edit, but the only "Target" in the list is Android 4.3 - API Level 18. I am using Nexus 4 as the device to emulate.
I've Googled (and Stackoverflow'd!) around for this to no avail. I haven't seen any articles which clearly outline what needs to be done to get Android 4.1 to appear in that list, and if there are any steps afterwards that I need to follow.
Do I need to download anything; is it just a configuration thing?
Any advice would be much appreciated. Thanks.
You need to install the SDK packages for the versions you want to target. Open the Android SDK Manager from Window->Android SDK Manager, then check the box for the latest Android 4.1 (API level 16).
I think you have installed Android 4.3 image only.
Try to install other SDKs using android SDK Manager.
Go to ur direcotry where you have placed your android sdk and run sdk manager
You will get whole list of supported API's
Just go ahead and download the required one
Install SDK's and Plugin's if you haven't installed.. Go through the links I mentioned, you will have an actual idea.
Hope this helps.. :)
If want to configure in eclipse then you've to update the latest version in your SDK manager.You can also use android ADT-Bundle.it support all API level.You can download from the developer site.

Categories