-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update all the android related projects to target API level 27 #17741
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ buildscript { | |
mavenLocal() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:2.2.2' | ||
classpath 'com.android.tools.build:gradle:2.3.3' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason why this can't be bumped to higher versions like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, shouldn't the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bumping to the 3.0.0 is out of the scope for this PR. IMO, should be done in another PR. |
||
classpath 'de.undercouch:gradle-download-task:3.1.2' | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
|
@@ -18,6 +18,7 @@ allprojects { | |
repositories { | ||
jcenter() | ||
mavenLocal() | ||
google() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think gradle 2.14.1 has google. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be upgrading to gradle 3.x soon anyway - #17747 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer gradle 4. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gradle 4 would be the ideal solution but an upgrade to 3 is a start |
||
|
||
def androidSdk = System.getenv("ANDROID_SDK") | ||
maven { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,13 +94,13 @@ def enableSeparateBuildPerCPUArchitecture = false | |
def enableProguardInReleaseBuilds = false | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion "23.0.1" | ||
compileSdkVersion 27 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @hramos 26 or 27, I think we best stay to one version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If possible, try and stick to the highest one. Has to be at least 26 to fix this issue. |
||
buildToolsVersion "27.0.2" | ||
|
||
defaultConfig { | ||
applicationId "com.helloworld" | ||
minSdkVersion 16 | ||
targetSdkVersion 22 | ||
targetSdkVersion 27 | ||
versionCode 1 | ||
versionName "1.0" | ||
ndk { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, delete those, they are not needed anyone with version code and name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah to quote the error message I'm getting in Android Studio 3.2 canary 14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that it is required by buck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks Android projects with RN components (it actually doesn't let me successfully run a debug build without that removed). Is it possible to have buck adjusted? Can it not read it from the gradle file instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I am not familiarised with buck. I will try to investigate.