Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use Gradle to generate Eclipse and Intellij project files for Android projects
    primarykey
    data
    text
    <p>Is it possible to generate Eclipse and Intellij project files for Android projects using Gradle?</p> <p>In maven we would do <code>mvn eclipse:eclipse</code> and in PlayFramework we would do <code>play eclipsify</code>. Does Gradle have this feature for Android projects?</p> <p>I have installed Gradle (1.6) and Android SDK Manager (22.0.1) explained <a href="https://stackoverflow.com/questions/16619773/failed-to-import-new-gradle-project-failed-to-find-build-tools-revision-17-0-0/17447972#17447972">here</a></p> <p>This is my build.gradle file:</p> <pre><code>buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.5.0' } } apply plugin: 'android' apply plugin: 'eclipse' sourceCompatibility = 1.7 version = '1.0.2' repositories { mavenCentral() } dependencies { compile fileTree(dir: 'libs', include: '*.jar') } android { buildToolsVersion "17" compileSdkVersion 8 defaultConfig { versionCode 1 versionName "1.0" minSdkVersion 7 targetSdkVersion 8 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] aidl.srcDirs = ['src'] renderscript.srcDirs = ['src'] res.srcDirs = ['res'] assets.srcDirs = ['assets'] } instrumentTest.setRoot('tests') } } </code></pre> <p>And then I run the command:</p> <pre><code>gradle clean build cleanEclipse eclipse </code></pre> <p>It builds just fine, but when I import the project into Eclipse it looks like a normal java project. </p> <p>Anyone know how to get <strong>Gradle</strong> to create <strong>Android</strong> specific <strong>Eclipse</strong> project files? </p> <p>Is this a prioritized feature by Gradle?</p> <p><strong>-- UPDATE --</strong></p> <p>I do believe this is an issue. So I have posted it to the Android Tools team <a href="https://code.google.com/p/android/issues/detail?id=57668" rel="nofollow noreferrer">issue #57668</a>. Please star it for them to prioritize the issue :)</p> <p><strong>-- UPDATE --</strong></p> <p>It does not look like the Android Tools team are looking into this issue. So for now I have converted to <a href="http://developer.android.com/sdk/installing/studio.html" rel="nofollow noreferrer">Android Studio</a> where I'm able to import my gradle project with dependencies via the IDE. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload