Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Gradle export of Android project does nothing

I'm trying to export my Android project from Eclipse (ADT 22.2.1) using the Gradle plugin.

I select my project in the initial Gradle dialog, click next

enter image description here

My project appears along with Android dependencies.

enter image description here

When I click on Finish, I can barely see a message "Creating Gradle Build files" BUT I never get a confirmation of Success. And build.gradle or settings.gradle ARE NOT in my projects root directory.

I can select each of the dependency libraries and they complete successfully

Any suggestions?

jb

like image 942
user899352 Avatar asked Oct 18 '13 19:10

user899352


People also ask

Where is the .Gradle file android?

The top-level build.gradle file, located in the root project directory, defines dependencies that apply to all modules in your project. By default, the top-level build file uses the plugins block to define the Gradle dependencies that are common to all modules in the project.


1 Answers

I faced the same problem, my solution was install the lastest Eclipse from their page, (i was using Juno, now with Kepler didn't have that problem), and Android ADT plugin link. Seems that they have breaked compatibility with older eclipse version in newer ADTs

An ankward one, but...at least it works

You can try it "the hard way", creating required files (build.gradle, gradle wrapper et al) by hand, but you will got a lot of mistakes, didn't worth the time spent.

EDIT : Extracted from Android Tools Tech Docs : Open the project in Eclipse, and from there, export the project. NOTE: Make sure you are using the latest possible version of Eclipse since we have fixed issues related to export recently.

like image 154
webo80 Avatar answered Sep 17 '22 22:09

webo80