First of all. Please do not lock or report this thread. I've tried all similar stackoverflow questions and none have fixed my problem!
Since I've added the google play services lib to my project (and the external JAR file)
I keep getting the same error over and over again.
I've downloaded the google play libs with my SDK manager, I've imported the project and then I referred to the play library in my app and added the external JAR file.
Pictures:
Can anybody tell me what I did wrong or how I can fix this problem?
I'm just trying to make my app login with Google+ really..
Thank you
~Yenthe
Since I've added the google play services lib to my project (and the external JAR file) I keep getting the same error over and over again.
Its a library project and you to reference the same in your android project.
I've imported the project and then I referred to the play library in my app and added the external JAR file.
Remvoe the external jar. Reference the library project as below.
http://developer.android.com/google/play-services/setup.html
If you are using android-studio follow the steps in the above link under the title Using Android Studio:
If you are using eclipse as a in IDE.
Copy the google-play services_lib library project to your workspace (folder where your android map project is). The library project can be found under the following path.
<android-sdk-folder>/extras/google/google_play_services/libproject/google-play-services_lib library project .
Import the library project to your eclipse
Click File > Import, select Android > Existing Android Code into Workspace, and browse the workspace import the library project. You can check if it is library project. Right click on the library project. Goto properties. Click Android on the left panel. You will see Is Library checked.
Right click on your android project. Goto properties. Choose Android on the left panel. Click on Add and browse the library project. Select the same. Click ok and apply
Related
EDIT: Added link to instructions
https://developer.spotify.com/documentation/android/quick-start/. I am at the section "Add the App Remote SDK".
I am following the step-by-step instructions provided by Spotify to add the App Remote SDK to my Android Studio project.
Their instructions state:
Unzip the App Remote SDK zip file that you downloaded. Add the library to your project by importing it as a module. In the “Project” side bar in Android Studio (View –> Tool Windows –> Project), right click your project’s root folder and navigate to “New” –> “Module”. In the “New Module” window, choose the option “Import .JAR/AAR Package”. Click “Next”.
With Android Studio Chipmunk, this option is no longer available.
I have tried numerous ways of importing the folder "android-sdk-0.7.2.-appremote-v1.2.3-auth" as a library into my Android Project. No matter how I do it, the Gradle Sync succeeds, but my code is not able to resolve any of the com.spotify.android imports. For example:
import com.spotify.android.appremote.api.ConnectionAparams;
Why am I having so much trouble importing a library into AS Chipmunk? I never had problems when using previous versions.
Is anyone else having this issue or just me?
TO fix this problem, I compiled the library into an AAR file. I copied the AAR file to the "libs" folder. Then added it as a module in the Gradle Build. Not sure why this works, but it does...
I am trying to add a Google+ sign in button in my app so that I can use the youtube API and provide an easy access to the user. However recently I updated my sdk and now on importing the google-play-services_lib in my workspace and further integrating the services in my project using the standard importing procedure (Project --> properties --> Android | add library) results in an red exclamation mark on my project and when I try to run it gives me a dialog which says there are errors in the project)
In Java build part I get an error which can be properly explained by the following screen shot:
How to resolve this issue? I am sure of the path.
Delete play services library from sdk (.../sdk/extras/google location )
Open SDK Manager and re-install play services library. Restart SDK Manager again to take effect.
Go to eclipse--> re-import play-services library from sdk (copy into workspace is optional).
Clean library project by project-->clean option
Go to your project, add this latest imported library to it.
Clean both library project and your project.
This should work..
i developed an android project using google-play-services_lib ( using google map ), my project is compiling and working fine as i want , but i want export my project in order to send it to someone else who should continue work on it , how can i include the google-play-services_lib's project in the same package.
PS :i have included the google-play-services_lib as lib
Send the project and your remote partner has to install "Google Play Services" with the Android SDK Manager.
So, the library project of "Google Play Services" is included into the sdk, and is located in <android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/ , he only need to import the project to his Workspace.
If you are using Eclipse, import the library project into your workspace.
Click File > Import, select Android > Existing Android Code into Workspace, and browse to the copy of the library project to import it.
Update:
or just copy the google-play-services.jar from google-play-services_lib/libs to the folder /libs of your project.
and delete the reference of google-play-services_lib of your project.
more info: Set Up Google Play Services SDK
I follow the instruction here https://developer.android.com/google/play-services/setup.html
The project lib is now appear in my eclipse but I have error :
What could be the problem?
I had a lot of problems with importing google play services library. Here is what I did...
Delete the library, on your eclipse AND on your computer.
Download a fresh, up to date revision of google play services library and save it in your preferred directory.
Go to your eclipse, file, import, existing code, navigate to the directory of the library, OK.
Now that the library is in your eclipse, right click your project (not the library, your app project) and click properties, under android, click add, click the library you just imported, click apply, and then you should be done.
Does anyone have any experience in making use of the Google play services library project in IntelliJ?
I recently purchased IntelliJ and want to make use of the Google play services library (specifically the mapping aspects of the library). In eclipse this works no problem but in IntelliJ all of the references to MapFragment etc are not being resolved.
I have done the following:
1) Imported the Google play module as a library project (marked it as a library project in the android facet)
2) Marked the google play library project as a dependency of my main application
Despite this it's not resolving the required imports.
Does anyone have any tips for how to enable the Google play services library in an IntelliJ android project?
http://youtrack.jetbrains.com/issue/IDEA-96525
Found the solution for folks out there.
You will need to add a dummy class to the src folder.
You'll also need to add the google-play-services.jar to your module as a jar dependency.
I tried a lot of suggestions on stackoverflow.com. However, I was able to get the project to build and run in IntelliJ IDEA 12.0.2 by
Copying the google-play-services.jar file located within my android sdk directory to the ./libs directory in my Android project
Re-importing the project (e.g., on Mac OS X, open IDEA and go to File -> Import Project...) into IntelliJ IDEA.
Follow the steps in the wizard carefully. You should be able to see that IntelliJ IDEA recognizes the google-play-services.jar archive (it's checked). This worked for me. The problem appears to be a bug.
The confusion here is that you need to add the google play libs as an android library project, not the JAR. You also need to make sure import a copy of the the library project, not directly out of the android sdk folder.
In your IntelliJ Project, open the Android SDK Manager in the tools/Android menu.
Scroll to the bottom of the SDK Manager and choose to install the google play sdk.
Go to the extras folder in your android sdk directory and copy google-play-services_lib folder to somewhere handy for you
Open your module settings F4, right click your module and select to add a module. Follow the guide for adding a module from existing sources.
This way, you've added the google play android library project to your project, not just the jar.
So the way to do this is to build goole-play-services.jar from IDEA and then include the jar file as a dependency.