Usually I can create my project, but whenever there is a database change, I need to start OrmLiteConfigUtil, and after starting I get an error, as shown below. it will never succeed. I tried to research another question and found a solution below, but still it does not work.
I tried disconnecting Aapt2by placing android.enableAapt2=falsegradle in the properties file.
Information:Gradle: Executing tasks: [:library:assembleDebug, :app:assembleDebug]
Information:Gradle: BUILD FAILED in 58s
Information:Modules "library", "app" were fully rebuilt due to project configuration/dependencies changes
Information:21-02-2018 05:09 PM - Compilation completed with 5 errors and 0 warnings in 1m 8s 524ms
Error:Gradle: failed to create directory 'D:\Working_folder\Fieldez_5.5.6.2\app\build\generated\source\r\debug\com\fieldez\mobile'.
Error:Gradle: java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Gradle: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Gradle: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Gradle: Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt
My project level gradle code
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
Application level gradle file
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'let'
repositories {
mavenCentral()
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
maven {
url "https://jitpack.io"
}
maven { url 'https://maven.fabric.io/public' }
maven { url "https://raw.githubusercontent.com/smilefam/SendBird-SDK-Android/master/" }
google()
}
buildscript {
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.canelmas.let:let-plugin:0.1.10'
classpath 'io.fabric.tools:gradle:1.+'
}
}
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion '26.0.2'
defaultConfig {
vectorDrawables.useSupportLibrary = true
applicationId "com.fieldez.mobile"
minSdkVersion 16
targetSdkVersion 23
multiDexEnabled true
dexOptions {
javaMaxHeapSize "4g"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
shrinkResources true
minifyEnabled true
zipAlignEnabled true
debuggable false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
}
}
useLibrary 'org.apache.http.legacy'
}
dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
implementation 'com.google.android.gms:play-services-maps:9.0.2'
implementation 'com.google.android.gms:play-services-location:9.0.2'
implementation 'com.google.android.gms:play-services-gcm:9.0.2'
implementation 'com.android.support:appcompat-v7:24.0.0'
implementation 'com.android.support:design:24.0.0'
implementation 'com.android.support:recyclerview-v7:24.0.0'
implementation 'com.android.support:cardview-v7:24.0.0'
implementation 'com.android.support:support-v4:24.0.0'
implementation 'com.j256.ormlite:ormlite-core:4.48'
implementation 'com.j256.ormlite:ormlite-android:4.48'
implementation 'org.apache.httpcomponents:httpmime:4.2.5'
implementation 'com.wdullaer:materialdatetimepicker:2.2.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'jp.wasabeef:recyclerview-animators:2.2.1'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'com.google.android.gms:play-services-appindexing:9.0.2'
implementation 'com.github.nikhilpanju:material-calendarview:-SNAPSHOT'
implementation project(':library')
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.nikhilpanju.recyclerviewenhanced:recyclerviewenhanced:1.1.0'
implementation 'com.android.support:multidex:1.0.1'
implementation('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
transitive = true;
}
implementation 'com.bartoszlipinski:recyclerviewheader2:2.0.1'
implementation 'konifar:fab-transformation:1.0.0'
implementation 'com.sendbird.sdk:sendbird-android-sdk:3.0.26'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'org.jsoup:jsoup:1.10.2'
implementation 'com.github.nikhilpanju:FloatingActionButton:-SNAPSHOT'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'io.reactivex:rxjava:1.1.0'
}
What is my project level gradle.propeties file in these or am I not?

source
share