Importing project into Android studio - android

I am trying to import an Android library I've created into Android Studio. I've exported the app from Eclipse by going to File > Export > Gradle Build Files which completed successfully.
However, when I try and import the project into Android Studio I get the following error:
You are using an old, unsupported version of Gradle. Please use
version 1.8 or greater. Please point to a supported Gradle version in
the projects Gradle settings or in the project's Gradle wrapper (if
applicable)
I've followed the instructions from Unable to import Eclipse project to Android Studio but this hasn't worked.
Thanks for any help you can provide

Download Gradle 1.8: http://www.gradle.org/downloads
Install/Copy it in a folder on your computer.
Check what gradle installation you use in Settings (Strg+Alt+S) -> Gradle
Check "use local gradle distribution" and point in "gradle home:" to the gradle installation

Related

How to use Gradle with ADT in Eclipse?

I have an Android project in Eclipse and I need to use some libraries in it, but I can't add them to the project because I can't find build.gradle file, please help me to make my Android project support Gradle like Android Studio
you could install Eclipse Buildship for Gradle support.
or import the project to Android Studio.
in both cases the ant build would need to be converted.

android studio project migrating to gradle build system warning

i have just migrated to ubundu 64bit 14.04 LTS operating system...after downloading android studio, i picked the option "Check out project from Version Control" to pull a project from github repository. In the next step after cloning the project i checked the "Create project from existing sources" option, after that i followed all the steps without changing anything and the project loaded in Android Studio. The problem is that i get "Migrate Project to Gradle?
This project does not use the Gradle build system. We recommend that you migrate to using the Gradle build system." warning and i get the following error logs:
Have you tried to import the project rather than simply opening the project?
File->New->Import project.

"Gradle location is incorrect" when migrating android project from eclipse to android studio

I followed the this guide to migrate my android project
https://developer.android.com/sdk/installing/migrate.html
I have exported a Gradle file through eclipse. When I try to import the project to android studio, I am stucked with this error. Please help
Android studio version 0.6.1
That's not asking for your project's Gradle structured files it wants the location of your Gradle Build tools or Gradle configuration file.
It defaults as a file called .gradle in your user home directory I think.
Mine points to:
/home/indiv/.gradle
Although, I found it easier to import my Eclipse projects into Studio (as Eclipse projects) than export a Gradle project from Eclipse and then import to Studio.
Your choice though.

Can't import eclipse project in android studio

I am trying to import eclipse project in Android Studio using http://developer.android.com/sdk/installing/migrate.html
Android Studio Version 0.4.2
Steps I followed:
Exported Eclipse project using "Generate Gradle build files"
Import Project in Android Studio and selected the build.gradle file.
Now when I open any layout file in Android Studio it gives error:
"Rendering Problems No Android SDK found. Please configure an Android
SDK"
I have earlier resolved this issue but don't remember how I did it. My other projects are working fine and Android SDK path is correctly specified. How to resolve this?
Create a local.properties file in your root directory of the Gradle project.
It should contain the path to your Android SDK
sdk.dir=/Users/leandros/android-sdk
File Menu > Project Structure > SDK Location.
If you're running an older version of Android Studio, it may be called something other than "SDK Location" in the Project Structure dialog, but it should still be there.

Android Studio is not using gradle to build my projects

I imported a project from Eclipse and android studio is not using my gradle scripts to build the project. Anyone else having this issue? Is there anyway to force Android Studio to use gradle to build my project.
If you import an existing project with no gradle configuration, Android Studio will use the old build system. If you want to use gradle, you should follow the instructions in the documentation :
http://developer.android.com/sdk/installing/migrate.html
Delete .idea and .iml, then open your project again

Categories

Resources