I am actually trying to open an old android project, which I have to edit. The project was coded back in Oct 14.
Now I downloaded the project from Github, and opened it in Android Studio via Import. When I try to build or debug, I get the error:
Error:(113, 28) No resource found that matches the given name (at
'value' with value '#integer/google_play_services_version').
After hours of searching in similar topics I did not find a solution that helped me.
Has anyone an idea how to solve the problem?
Try this below Methods,I hope this will help you.
Edit 1:
Import Eclipse Project to Android Studio:
1.Start Android Studio and close any open Android Studio projects.
2.From the Android Studio menu click File > New > Import Project. Alternatively, from the Welcome screen, click Import project (Eclipse ADT, Gradle, etc.).
3.Select the Eclipse ADT project folder with the AndroidManifest.xml file and click Ok.
4.Select the destination folder and click Next.
5.Select the import options and click Finish.
6.The import process prompts you to migrate any library and project dependencies to Android Studio, and add the dependency declarations to the build.gradle file.
For detail description try this link
https://developer.android.com/studio/intro/migrate.html#migrating_from_eclipse
Edit2:
Remove the line in the project.properties file that was making reference to the google_play_services_version.
All the Best.
Related
How to solve it when I import eclipse project into my android studio
Image to understand issue
Edit 1:
Import Eclipse Project to Android Studio:
Start Android Studio and close any open Android Studio projects.
From the Android Studio menu click File > New > Import Project.
Alternatively, from the Welcome screen, click Import project (Eclipse ADT, Gradle, etc.).
Select the Eclipse ADT project folder with the AndroidManifest.xml file and click Ok.
Select the destination folder and click Next.
Select the import options and click Finish.
The import process prompts you to migrate any library and project dependencies to Android Studio, and add the dependency declarations to the build.gradle file.
For detail description try this link
https://developer.android.com/studio/intro/migrate.html#migrating_from_eclipse
Edit2:
Well, there might be another way of solving this problem, but I ended up removing the line in the project.properties file that was making reference to the Android Bootstrap library.
I am importing a eclipse project into android studio . All steps are fine but at the end it asks for eclipse workspace path and its giving error like.
Cant Save Settings
Enter a value for workspace path /src/com/magtek/mobile/android/demo/EMVLanguage.java
Import project from eclipse to android studio like following steps:
Start Android Studio and close any open Android Studio projects.
From the Android Studio menu click File > New > Import Project.
Select the Eclipse ADT project folder with the AndroidManifest.xml file and click Ok.
Select the destination folder and click Next.
Please read this link. It might be helpful to you.
Reference Link
Happy coding!
How to import new project to Android Studio
Once you have unzip the file make sure
you delete duplicates of actual folder name
e.g QuakeReport-> QuakeReport ->app,.gradle,build, e.t.c
delete the duplicate sub file which it should be like this below
QuakeReport-> ->app,.gradle,build, e.t.c
then copy this file build.gradle file from your past android project into this project or visit https://developer.android.com/studio/build/index.html search for
dependencies {classpath 'com.android.tools.build:gradle:3.0.1'}
which you copy other codes located in that block of code only and name your file
build.gradle
Open your Android Studio
Click on File located at the left upper end of Android Studio
click on New file
Scroll to Import file
Select the file
Click on import
Click on import project from external model
Click on use local gradle distribution then select latest gradle
gradle file is often located at
C:/Program Files/Android/Android Studio/gradle/gradle-4.1
then follow other on screen instruction
if after you have done all that and the run(play button) is not active
or you see an on screen message gradle not present in this project
Click on clean project
then click on rebuild project
then there will be a message at event log
scroll if it is update gradle needed click on it and update
Gradle will be active
Click on Build.gradle of the application and select open with android studio
I am using android studio 1.0.2
for a month
and when I import aproject I am asked to choose project folder
and after clicking ok I am redirected to a window asking project destination
and from there it strait forword to finish importing
now I am encounter a different wizard
after selecting project folder I am getting to
a window asking me to choose import gradle from external model
and dont alow me to check the use gradle wrapper(grayed out)
so at the end I get my project imported without any gradle
files
hope somone can help know why did it changed
thanks
I found the answer
I did not point to the project directory that
I wanted to import to android studio
that is containing the project files
(I choose directory that contained that directory and that cause the difficulty)
thanks
I'm starting to use Android Studio. I'd like to open project from GitHub
https://github.com/TonicArtos/StickyGridHeaders
On first screen I click 'Check out from Version Control', 'GitHub', select place on disk.
After cloning I have a question 'You have checked out an Android Studio project fileā¦ Would you like to open it?', I agree.
Than I agree to auto-import for Maven project.
Than I find the project 'Examples', try to build it and get 'No resource found that matches the given name Theme:AppCompat', and import android.support.v7.app.ActionBarActivity does not work.
https://www.dropbox.com/s/ph04ogcr2txmge3/Screenshot%202014-07-24%2017.42.22.png
What to do to make the example app? Requirement is to save the project structure for using 'git status' and 'git diff' commands.
There are several SO questions on this topic, but #MartinRevert's answer (https://stackoverflow.com/a/24978323/5025060) is the only one I found mentioning Android Studio's (AS's) Gradle dependency. If the Github project was built with Eclipse, importing it to AS will work but the result will not be buildable with AS (indication: the project's "Make project" icon is grayed out in AS).
Building on Martin's answer, and using IntelliJ's Migrating From Eclipse Projects page as a reference, I found a simple and transparent way to import an Eclipse-based Github project into AS 2.1.2:
Import the Github project using AS:
File->New->Project from Version Control->Github
This clones the Github project, but if it is not a Gradle Project (see above), follow these additional steps:
Create a new project using:
File->New->Import Project and click on the folder you stored the project to in step (1) above. Accept all of the defaults and AS will "import" the Eclipse project to a Gradle project which it will now be able to build.
You may now delete (using a native directory removal tool) the project you created in (1) above.
Related questions:
Android Studios - import project from GitHub
How to import an existing project from github into Android Studio
The project is not a Gradle Project, so it is not compatible with Android Studio yet.
I recommend to check out from Github inside Eclipse and export as a 'Gradle Project'.
Then, proceed to import that project into Android Studio.
When I import the ActionBarSherlock Sample Project I get error saying [SampleList] Unable to resolve target 'android-14'. What could it be.please help
Start Android SDK Manager and update downloading Android 4.0 (API 14).
Or
Change the Project Properties to compile with an existing Android OS Version.
(Right click to your project folder > Properties > Android > select any version you want)
ok,atlast managed to solve this issue. the problem was solved by importing the demo project in my eclipse workspace.for some reason eclipse did not like me to run the sample app from the actual folder. so you need to import the demo folder in ../JakeWharton-ActionBarSherlock-071a61c\actionbarsherlock-samples\demos and in eclipse while importing check the "copy files to workspace"