I'm integrating google map v2 to my android app, I'm using Eclipse with minimum SDK Version version 10. I'm using a Samsung Galaxy Ace as a test device.
I've read and done the necessary steps in this site:
http://developer.android.com/google/play-services/setup.html
https://developers.google.com/maps/documentation/android/start
I've also consult this tutorials:
http://www.vogella.com/articles/AndroidGoogleMaps/article.html
http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/
The problem is that the google-play-service_lib seems to be not included although I have done the step Project > Properties > Android > Add: google-play-service_lib
Here is a screenshot:
I've tried solving this problem by doing Project > Properties > Java Build Path and adding the google-play-service_lib, but this will cause a runtime error java.lang.noclassdeffounderror: com.google.android.gms.R$styleable
Has anyone encounter this problem, and how did you solve this?
Make sure that your project code and google-play-service_lib's code are at same place otherwise it will keep fireing import error.
As you said
I add the library project, it is green. But when I visit the Project > Properties > Android part again, it will be red.
Just copy your project into your workspace or if its already copied into the workspace make sure you have also copied your Google-play-services library into your workspace otherwise it will always give you library error as it will not get the library available into your workspace.
The problem is because when you are importing lib project at that time you haven't copy that project in to workspace.
So finally when import it enable "Copy to Workspace" checkbox.
And after that give a reference to your project like below image.
Related
I am trying to build my project on device and having problem with library configuration for App-v7-appcompact from the screenshot as below.
I have successfully added App-v7-appcompact into Eclipse project and also tried adding manually in Eclipse folder but having same errors even I added to build path aswell. I dont know what is problem with Appcompact-v7-library, plz help me in fixing my issue so I am able to run application on device.
I also added libraries in properties aswell.
check here this is very helpfull http://developer.android.com/tools/support-library/setup.html
For the last 2 days I've been trying to simply get Google play game services Integrated into my game. I've followed the instructions here...
https://github.com/playgameservices/android-basic-samples/blob/master/README.md
...many many times. I have been trying to get it to build with Gradle but for now, I'll just focus on Eclipse building until that works. I've imported BaseGameUtils project into my workspace as an Android library project. My game android project has two Android library dependencies: google-play-services_lib and BaseGameUtils. Everything in Eclipse is showing without any errors. When I build and run on a real device, I see an error that says -
[2014-10-27 20:39:25 - BaseGameUtils] Could not find BaseGameUtils.apk!
I don't know why it's even looking for BaseGameUtils.apk since it should be an Android library. That said, I'm not sure how an Android library is really handled so maybe it should be a .apk. In any case, I couldn't find any information on this bug and the error message doesn't give me much to work with. I've tried adjusting things in the Build Path but no luck. I did have to remove some redundant dependencies in my Build Path earlier since I was getting some kind of duplicate DEX error but I'm not sure that's related in any way to this. I am desperate for help, anyone have any idea?
Can you try this? It has to do with conflicting methods of specifying that a project is a library.
I found the source of the problem!
It turns out that "with the new library feature, you don't specify the
Android projects you depend on in the Java Build Path section of the
Properties. You do it in the Android section of the Properties".
So all I had to do is go the Application Project's Properties, hit the
Projects tab, select my own library project and click the Remove
button. That's it. No more problem.
In Eclipse Java EE select the project Properties, then select Project
References, then check the FacebookSDK (see screen capture)
From: Android Eclipse - Could not find *.apk
If that doesn't help, you may want to double check that you selected "Is Library" in BaseGameUtils.
Also, when you hit "Run" in Eclipse, are you running your application and not BaseGameUtils?
Please would you check that BaseGameUtils has "is library" checked and that your application project DOES NOT have "is library" checked.
If this is correct, then please would you review the following in detail (especially as regards checking and unchecking "is library" ) :
Android Eclipse - Could not find *.apk
I presume that the DEX error related to two or more versions of the same lib. What is the specific GameHelper error ?
As a general point, I find it productive to get a sample project working first to ensure that I have got the environment working correctly before I start integrating game services into my own projects. If you have been changing the build path then it may be quicker to start from scratch and get a sample working. I have followed those instructions in the past and they are accurate.
I just imported a demo project and it contains one error. The error is underlining the "p" of package on the header of one class. See image below. I have run project clean, etc. Nothing gets rid of this weird erroneous error:
This project demo was download from here.
Right click on your project > Properties > Android > Select an Android version.
OR
If above solution is not eligible, you have most probably not added Google Map Api to your demo project, It can found here
I imported playservices following the officially documments of android.
Imported the project from sdk-for-windos > extras > google > google-maps-project-lib or so.
Then I add it to my project as a dependency, like i've to do...
But on the moment of importing the lib, all my R. files (Layout / id etc.) Are broken,
R.android works , just R.myappname is totally broken.... it doesn't regenerated.
I've no idea how, and there is just no info about this issue to find.
All help is appriciated, im desperated! (To add, i want to use googleplayservices for google maps, which seems i've to use this for, if it helps).
I believe you are having the same issue I have encountered. Try this: Add Java Build Path reference to android_sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google_play_services.jar file. It fixed the issue I had. Problem i faced
screenshot #1: google_play_services project referenced as a library
screenshot #2: google_play_services.jar added to java build path
screenshot #3: google_play_services.jar ticked on
I would like to compile the sample provided by Sony for his SmartWatch. I followed the instructions in this page. But when I added the the SmartExtensionUtils project I saw lot of errors like: com.sonyericsson.extras.liveware.aef cannot be resolved to a variable. Instead this import com.sonyericsson.extras.liveware has no problem.
Did someone find and solve this issue?
In order for the EightPuzzleGame to compile, you need to add the following library projects that are available in the SDK:
SmartExtensionAPI
SmartExtensionUtils
SmartExtensionInternalUtils
In your case, it is the API project that is probably missing. You can see what library projects that are missing by checking the project properties. Example:
What you need to do is go to the properties page of the SmartExtensionUtils library and in the library box add SmartExtensionAPI as a dependency
This is a link to my desktop screenshot. SmartExtensionAPI and utils are in the project list (left side) but the EightPuzzleExtension does not find them
You don't need SmartExtensionInternalUtils project. When you create project from existing source, check Import project into Workspace. In this way EightPuzzle, SEAPI and SEUtils will be in the same directory and you'll not have no errors :)
I had this problem too. What i did is to solve it, is to import from the Sony samples in the Sony add-on SDK 3.0 the SmartExtensionAPI first and than SmartExtensionUtils. If these samples are build correctly the other samples will build correctly as well.
Go to File|Import, choose SmartExtensionAPI as your root directory and click finish. Maybe you have to change the compiler compliance level to build it correctly. After this do the same for SmartExtensionUtils.