kartikpatodi
06/04/2018, 6:19 PMbuild.gradle
file
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 'android-P'
defaultConfig {
applicationId 'com.example.app'
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionNameSuffix 'b'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), '<http://proguard-rules.pro|proguard-rules.pro>'
}
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation 'androidx.constraintlayout:constraintlayout:1.1.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0-alpha3', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'androidx.core:core-ktx:1.0.0-alpha1'
implementation 'androidx.fragment:fragment-ktx:1.0.0-alpha1'
implementation 'androidx.appcompat:appcompat:1.0.0-alpha1'
implementation 'androidx.cardview:cardview:1.0.0-alpha1'
testImplementation 'junit:junit:4.12'
implementation 'com.amitshekhar.android:android-networking:1.0.1'
implementation('com.squareup.picasso:picasso:2.71828') {
exclude group: 'com.android.support', module: 'exifinterface'
exclude group: 'com.android.support', module: 'support-annotations'
}
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
repositories {
mavenCentral()
}
Kotlin cannot resove the dependencies like Picasso
and AndroidNerworking
but java can resolve easily 😢
I am using androidx + jetifier + studio 3.2 canary 16