Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
Fixes to gradle build files
  • Loading branch information
jasleensingh committed Mar 16, 2015
1 parent 593bcf2 commit a04b1e2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ apply plugin: 'com.android.library'
import com.android.builder.core.BuilderConstants

android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 16
targetSdkVersion 19
minSdkVersion 11
targetSdkVersion 21
}

sourceSets {
Expand Down
6 changes: 3 additions & 3 deletions shimmer-android-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ dependencies {
}

android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
compileSdkVersion 21
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 16
targetSdkVersion 19
targetSdkVersion 21
}

signingConfigs {
Expand Down
2 changes: 1 addition & 1 deletion shimmer-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 9
minSdkVersion 11
targetSdkVersion 21
}

Expand Down

2 comments on commit a04b1e2

@alvinwoon
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I am still seeing:

"Error:(6, 5) uses-sdk:minSdkVersion 14 cannot be smaller than version 16 declared in library /Users/alvinwoon/AndroidStudioProjects/FirstApp/app/build/intermediates/exploded-aar/com.facebook.shimmer/shimmer/0.1.0/AndroidManifest.xml"

@jasleensingh
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the issue is that the default maven repository used by AndroidStudio (jcenter) doesn't have the updated packages yet. If you switch to the following in your build.gradle file (and clear caches if necessary), it should work:

allprojects {
    repositories {
        mavenCentral()
    }
}

Or you can wait for a few hours to see the updated packages.

Please sign in to comment.