cannot click on finish button when importing project - android

Here is the image
When I try to import module in another project I cant click on finish button.

The folder you want to import should contain a Gradle file in itself for Android Studio to recognise.
Can you check if that folder Little Genius has a Gradle file in it?
If it has a Gradle file, you would see a section like this to name the module.
The Finish button would be enabled after that.

I think this is a Android Studio Arctic Fox bug. I downloaded Intellij Idea, open project, file > new > module. That's works;

Related

AndroidBootstrap could not be found

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.

How to import existing project in android studio?

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

android studio import eclipse project

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

There are unrecoverable errors which must be corrected first

I have ADT Eclipse Project and I want to just import that project in android studio.
But I got this error There are unrecoverable errors which must be corrected first.
The error is saying that your project depends on google_Play_Service_Lib and android studio is not able to find that dependency, but what android studio did is giving you the path where you can paste that library and then you will able to import that project.
first download google_service_lib from
https://github.com/aporter/coursera-android/tree/master/Examples/google-play-services_lib
or
https://github.com/MobileChromeApps/google-play-services
and now paste that in
E:\android\CFPEvents\cfp-android-user
now again import..
find project.properties
open it,
delete(No package)android.library.reference.1=../android-support-v7-appcompat
later,you need download the package.
link http://blog.csdn.net/wu_wxc/article/details/47091795
You need to add the
google_play_service_lib
in the folder
E:\android\CFPEvents\cfp-android-user
and re-import the project.
Above answers are right but it seems it is only the First Step on the way to solving this issue because I had faced the same issue.
So what can be done?
First Step
First download google_service_libary not only jar and now paste that in E:\android\CFPEvents\cfp-android-user(path of your project folder).
Second Step
Close your project
Back up your project
Delete the .idea folder in the root directory of the project
Delete all the .iml files in your project
Import your project in Android Studio, and in the dialog that prompts
you for a file, choose the build.gradle file.
After this you should be good to go.

Being told project is not using the gradle build system when it is

When I open my project in Android Studio, I always get this.
Back when Android Studio first came out, I went through this process so the project should have the Gradle build system. There is a build.gradle file in the root of the project.
I can still build and run the project, but I don't understand why it always says this since the project should use gradle build system. Any help with this would be great.
The android studio support two "build mode". one is "legacy" and one is "gradle based". If you are using an very early version of android studio, probably you are still using the legacy build mode. You need to re-import your project using "gradle mode" then this warning will be gone.
To do so, select "file/import project", select your project root directory, and in the next dialog choose "Import project from external model" and select gradle. Then, you may choose "gradle wrapper" or use your own gradle distribution (1.8 for now[12/2013]).
This link can help, https://developer.android.com/studio/intro/migrate.html
Import as a Project:
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.
i know this is an old question but is still valid with newer versions of AS.
If you try to import and import againa and still have the same issue, check if there's a gradle.build file on the root directory, if there's not just create one.
In my case I had to migrate an old project to the new version because with the 0.4.4+ version it stopped recognizing it, and it kept failing, and that was the problem.
Curious thing is the top level build.gradle file just contains this comment:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
I fixed this issue with the following steps:
Make sure that the following two files are in your project directory. If not, create a new one with reference of your other Android projects. These are default auto-generated files.
settings.gradle
build.gradle
If it is still showing any errors when you open your project, restart your project by selecting file/(invalidate /restart).
import Project
File --> New -->import Project
In my case the the problem was that studio version I am using does not support the gradle version of file, so in build.gradle I had to change the gradle version to 2.3.0 and everything is smooth now

Categories

Resources