Skip to content

Instantly share code, notes, and snippets.

@windy1
Forked from rohandalvi/build.gradle
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save windy1/89dc03f2a13d3b37d0cd to your computer and use it in GitHub Desktop.
Save windy1/89dc03f2a13d3b37d0cd to your computer and use it in GitHub Desktop.
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.dalvir.find"
minSdkVersion 15
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'se.walkercrou:google-places-api-java:2.1.2'
compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'
}
@rohandalvi
Copy link

Led to further errors while building: https://gist.github.com/rohandalvi/1794af8547fa7367abf8

@windy1
Copy link
Author

windy1 commented Apr 22, 2015

It says what to do right in the error...

https://gist.github.com/rohandalvi/1794af8547fa7367abf8#file-erro-L32

You can ignore those files in your build.gradle:
    android {
      packagingOptions {
        exclude 'LICENSE.txt'
      }
    }

@rohandalvi
Copy link

Switching over to mac from windows and created a new project in android studio.

I have the gradle file updated.

https://gist.github.com/rohandalvi/fac326fa326b588442ad

But still keep getting error:

https://gist.github.com/rohandalvi/5bdfae12fd284de124ee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment