Skip to content

Conversation

@ggfan
Copy link
Contributor

@ggfan ggfan commented Oct 31, 2017

adding 'flavorDimensions' for for hello-jni for Android Studio 3.0 requirements. @rschiu, @jomof, @qchong may you kindly take a look?

@ggfan ggfan requested a review from jomof October 31, 2017 04:58
@ggfan
Copy link
Contributor Author

ggfan commented Oct 31, 2017

android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
buildToolsVersion '26.0.2'
Copy link

Choose a reason for hiding this comment

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

Delete this line.

You no longer need to explicitly specify the build tools version. AGP uses a recommended default automatically :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
compile 'com.android.support:appcompat-v7:25.4.0'
Copy link

Choose a reason for hiding this comment

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

Could use global properties here?

See: https://developer.android.com/studio/build/gradle-tips.html#configure-project-wide-properties

(And yeah, I just noticed that I specify buildToolsVersion in the sample. I'll remove it :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is good point, will use this global feature in multi-module project environment. This one is one module project, keep it in one place for simplicity case.


allprojects {
repositories {
jcenter()
Copy link

Choose a reason for hiding this comment

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

Put google() first, before jcenter().

Believe it or not, certain things features, such as like running Lint checks on Kotlin code from the command line, doesn't work unless you include google() first (don't ask me why).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done, will change other samples too

@ggfan
Copy link
Contributor Author

ggfan commented Oct 31, 2017

uploaded with fix from code review, @adarshf, may you kindly have one more look? thanks

@ggfan ggfan merged commit bf81ce1 into master Oct 31, 2017
@ggfan ggfan deleted the AS-3.0-update branch October 31, 2017 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants