I downloaded a project from GitHub, extracted it then opened it as existing project in Android Studio but run button is disabled and the project can not be displayed as "Android" ... Any help ?
Try File -> Sync project with gradle Files
or if that doesn't help
Rebuild.
Instead of opening it as an existing project, import it using File -> New -> Import
Related
I'm trying to add that library to my android studio project
enter image description here
How can i do that ?
Appreciate any help !
File -> New -> Import Module...
Select the source directory of the Module you want then click Finish.
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
Hi I download some project from GitHub, but when I import them , I receive error(downloading gradle).
Project gradle is 2.2.0 , I download it and place in ".gradle/wrraper/dists" and I ticked offline gradle but I receive error again.
Click on File -> New -> Project from Version Control -> Github
do this
,
The error does not belong to the Android Studio or Github but there is gradle conflict of the version.
You would have to updated the Gradle version depending on version you have.
Update:
download git from here, You may also choose plugins
Simply Go to File -->open --> select the project you want to import--> finish
Try import your project in android studio. Using project level build.gradle.
Like File --> Import Project --> (Open your project build.gradle file)
First Open android studio -->Select File menu -->click on open -->pop new windows-->select project -->click ok -->finish
I am trying to import my clone of https://github.com/condesales/easyFoursquare4Android into android studio by following Android Studio 0.8.1 - how to use Facebook SDK? but in this case there is no foursquare folder.
When I try to reimport it says "location already imported". I was importing from
%MY_HOME%\AndroidStudioProjects\EasyFourSquareApp
which contain the EasyFourSquareApp library and the EasyFourSquareApp example.
I also don't see a refresh project button in Android Studio like in Eclipse, I hit synchronize and still dont see any foursquare folders.
In NavigationBar ,Threr are two options bellow "Build"
Build -> Rebuild Project
-> Clean Project