Reputation: 1
While importing projects(project was created in eclipse) into Android Studio I have some problem:
1) R.file and methods are cannot be resolved
2) `Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\StormY\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 Error:(153, 28) No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').`
Why did this happen? How can I fix this?
Upvotes: 0
Views: 2410
Reputation: 4549
You have to update the android repository, the support library like Google play services in your gradle for app module this dependency:
compile 'com.google.android.gms:play-services:6.5.87'
prior to this you have use eclipse in which you included libraries by importing them in eclipse but in android studio you have to mention them in build.gradle
and after that you have to sync your gradle
like this
this is the place where you will find app.gradle i have highlighted the file which you need to edit
Upvotes: 0
Reputation: 4252
According to the log, you are missing the google play services module.
Using google play services is different between eclipse and android studio. in eclipse you had to create a module and add a dependency on it. in android studio this is no longer needed. you should: a) remove the google play services module from your project if it has been imported with it.
b) Add a gradle dependency on the current play services version (see the docs for step by step instructions).
c) Make sure you Sync Project with Gradle Files (step 3 in the above link).
This should import google play services correctly which means your project would find google_play_services_version and compile successfully.
Upvotes: 1
Reputation: 2323
You need to import the play_services_lib project into your workspace. And then add this library to you project by going to
Your Project -> Properties -> Android -> Library
Checkout this link for detailed explanation on how to import the play_services_lib into your workspace
http://developer.android.com/google/play-services/setup.html
After this the error will vanish and you need not add any fixed value.
Upvotes: 1