Note that there are some explanatory texts on larger screens.

plurals
  1. POMulti-project setup with Gradle for Android
    primarykey
    data
    text
    <p>I am having a problem to make my Android application build. </p> <p>I have one Main application module, and another one that is needed for the google-play-services_lib. </p> <p>My folder structure is as follows:</p> <pre><code>ParkingApp | |-----&gt; google-play-services_lib (Library Project) |-----&gt; ParkingApp |-----&gt; settings.gradle </code></pre> <p>My settings.gradle file is as follows:</p> <pre><code>include ':ParkingApp', ':google-play-services_lib' </code></pre> <p>My ParkingApp has the following build.gradle. </p> <pre><code>buildscript { repositories { maven { url 'http://repo1.maven.org/maven2' } } dependencies { classpath 'com.android.tools.build:gradle:0.4' } } apply plugin: 'android' dependencies { compile files('libs/android-support-v4.jar') compile project(':google-play-services_lib') } android { compileSdkVersion 17 buildToolsVersion "17.0.0" defaultConfig { minSdkVersion 15 targetSdkVersion 17 } } </code></pre> <p>And the google-play-services_lib has the following build.gradle: </p> <pre><code>buildscript { repositories { maven { url 'http://repo1.maven.org/maven2' } } dependencies { classpath 'com.android.tools.build:gradle:0.4' } } apply plugin: 'android-library' dependencies { compile files('libs/google-play-services.jar') } android { compileSdkVersion 17 buildToolsVersion "17.0.0" defaultConfig { minSdkVersion 15 targetSdkVersion 17 } sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] resources.srcDirs = ['src'] res.srcDirs = ['res'] } } } </code></pre> <p>Any help is appreciated!</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