My attempt to develop an android app in ionic 3 hit a roadblock when running 'ionic cordova build android' resulted in the error: Execution failed for task ':app:processDebugResources'. > Failed to execute aapt I have integrated plugins such as firebase
I have tried various solutions like modifying build.gradle by adding configurations.all, changing the order of jcenter(), creating a build-extra.gradle file, and removing the platform. However, none of these attempts were successful. Can someone please assist me?
Sharing my current build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' } // Fabrics Maven repository from cordova-plugin-firebase
maven {
url "https://maven.google.com"
}
jcenter()
}
dependencies {
configurations.all {
resolutionStrategy.force 'com.android.support:support-v4:24.0.0'
}
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.google.gms:google-services:4.1.0' // google-services dependency from cordova-plugin-firebase
classpath 'io.fabric.tools:gradle:1.25.4' // fabric dependency from cordova-plugin-firebase
}
}
allprojects {
repositories {
google() // Google's Maven repository from cordova-plugin-firebase
maven {
url "https://maven.google.com"
}
jcenter()
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="25.0.2" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=26 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=26 //Integer - We ALWAYS compile with the latest by default
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Prior to making adjustments, I encountered an issue related to support-android-v4.