buildscript {
repositories {
jcenter()
mavenCentral()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.google.gms:google-services:3.1.0'
classpath 'me.tatarka:gradle-retrolambda:3.2.0'
//classpath 'io.fabric.tools:gradle:1.+'
}
}
plugins {
id 'com.android.application'
id 'hugo'
id 'com.google.gms.google-services'
// id 'com.google.firebase.crashlytics'
}
//maven {
// url 'https://maven.google.com/'
//}
//apply plugin: 'com.android.application'
//apply plugin: 'com.jakewharton.hugo'
//apply plugin: 'hugo'
//apply plugin: 'io.fabric'
android {
compileSdkVersion 28
buildToolsVersion '28.0.2'
flavorDimensions "default"
defaultConfig {
applicationId "net.mobile.wellaeducationapp"
minSdkVersion 19
targetSdkVersion 28
versionCode 11
versionName "1.0.6"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
compileOptions.incremental = false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
productFlavors {
staging {
buildConfigField 'String', 'BASE_URL', '"http://163.47.143.188:4828/api/"'
}
}
dexOptions {
jumboMode true
// incremental false
javaMaxHeapSize "4g"
preDexLibraries true
dexInProcess = true
}
compileOptions {
incremental true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/rxjava.properties'
exclude 'META-INF/LICENSE'
}
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
android {
useLibrary 'org.apache.http.legacy'
}
}
def getVersionCodeTimestamp() {
def date = new Date()
def formattedDate = date.format('yyMMddHHmm')
def code = formattedDate.toInteger()
println sprintf("VersionCode: %d", code)
return code
}
repositories {
maven {
url "https://jitpack.io"
}
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.volley:volley:1.2.1'
implementation 'com.squareup.retrofit2:retrofit:2.2.0'
implementation 'com.squareup.retrofit2:converter-gson:2.2.0'
// compile 'com.github.barteksc:android-pdf-viewer:2.8.2'
implementation 'com.squareup.retrofit2:converter-jackson:2.2.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.squareup.okhttp3:okhttp:3.2.0'
//Dagger
implementation 'com.google.dagger:dagger:2.10'
annotationProcessor 'com.google.dagger:dagger-compiler:2.10'
//RxJava related
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
// Because RxAndroid releases are few and far between, it is recommended you also
// explicitly depend on RxJava's latest version for bug fixes and new features.
implementation 'io.reactivex.rxjava2:rxjava:2.0.1'
implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-appcompat-v7:2.0.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
implementation 'com.jakewharton.rxbinding2:rxbinding-recyclerview-v7:2.0.0'
//multidex library
implementation 'com.android.support:multidex:1.0.3'
apply plugin: 'com.android.application'
//or apply plugin: 'java'
implementation 'com.afollestad.material-dialogs:core:0.9.4.4'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
implementation 'com.squareup.retrofit:retrofit:1.9.0'
implementation 'com.github.jgabrielfreitas:BlurImageView:1.0.1'
implementation 'com.github.antonKozyriatskyi:CircularProgressIndicator:1.1.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.github.sundeepk:compact-calendar-view:2.0.2.3'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.google.firebase:firebase-core:21.1.1'
implementation 'com.google.android.gms:play-services-location:21.0.1'
implementation 'com.google.firebase:firebase-auth:21.1.0'
implementation 'com.google.firebase:firebase-database:20.1.0'
implementation 'com.firebaseui:firebase-ui-database:1.0.1'
implementation 'com.google.android.gms:play-services-drive:17.0.0'
implementation 'com.google.firebase:firebase-storage:20.1.0'
implementation 'com.google.firebase:firebase-invites:17.0.0'
implementation 'io.github.ypdieguez:cursor-recycler-adapter:1.0.0'
implementation 'com.intuit.ssp:ssp-android:1.0.5'
implementation 'com.intuit.sdp:sdp-android:1.0.5'
configurations.all {
exclude group: 'com.android.support', module: 'support-v13'
}
implementation('com.crashlytics.sdk.android:crashlytics:2.10.1@aar') {
transitive = true;
}
implementation 'com.github.javiersantos:BottomDialogs:1.2.1'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-crashlytics'
implementation platform('com.google.firebase:firebase-bom:31.3.0')
implementation 'com.google.firebase:firebase-core:21.1.1'
implementation 'com.google.firebase:firebase-messaging:23.1.2'
implementation 'com.google.firebase:firebase-auth:21.1.0'
}
//apply plugin: 'com.google.gms.google-services'
//apply plugin: 'com.google.firebase.crashlytics'
/*
log issue i am facing
Unable to find method ''org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)''
'org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)'
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
*/
I am updating my older app when it importing getting these issue with gradle build
Top comments (0)