Ionic 3 Gradle build Execution failed for task












0















I am trying to run the following command: ionic cordova run android but this throw me the following error:



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt


Here is my ionic info:



Ionic:

ionic (Ionic CLI) : 4.3.1 (C:Userssylvan.reinierenAppDataRoamingnpmnode_modulesionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 6.3.0
Cordova Plugins : cordova-plugin-ionic-webview 1.2.1, (and 16 other plugins)

System:

Android SDK Tools : 26.1.1 (C:UsersnameAppDataLocalAndroidSdk)
NodeJS : v8.12.0 (C:Program Filesnodejsnode.exe)
npm : 6.4.1
OS : Windows 10


I am really losing my mind what I allready tried:
changed this line in platform/android/project.properties



com.android.support:support-v4:+


to



com.android.support:support-v4:27.1.0


Than it throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException:
Multiple dex files define
Landroid/support/v13/view/DragAndDropPermissionsCompat;


Than what google gave me as answer on the error above is to add this in android defaultconfig:
multiDexEnabled true
line in the build.gradle file



like this:



android {
sourceSets {
main {}
}

defaultConfig {
versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
applicationId privateHelpers.extractStringFromManifest("package")

if (cdvMinSdkVersion != null) {
minSdkVersion cdvMinSdkVersion
}

multiDexEnabled true
}
}


But that throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException:
java.util.zip.ZipException: duplicate entry:
android/support/v13/view/DragStartHelper$1.class


Some additional information this is my cordova plugin list:



com.darktalker.cordova.screenshot 0.1.5 "Screenshot"
cordova-android-play-services-gradle-release 2.0.0 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 1.4.7 "cordova-android-support-gradle-release"
cordova-plugin-3dtouch 1.3.5 "3D Touch"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.3 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-deeplinks 1.0.17 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
org.apache.cordova.geolocation 0.3.6 "Geolocation"
phonegap-plugin-push 1.11.1 "PushPlugin"









share|improve this question

























  • Did you try removing the platform and adding it?

    – Aravind Bhat K
    Nov 21 '18 at 8:51













  • @AravindBhatK yes i did also tried to add android@7.0.0

    – Sireini
    Nov 21 '18 at 9:16











  • update cordova-android-support-gradle-release to v2.0.1

    – DaveAlden
    Nov 21 '18 at 10:25
















0















I am trying to run the following command: ionic cordova run android but this throw me the following error:



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt


Here is my ionic info:



Ionic:

ionic (Ionic CLI) : 4.3.1 (C:Userssylvan.reinierenAppDataRoamingnpmnode_modulesionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 6.3.0
Cordova Plugins : cordova-plugin-ionic-webview 1.2.1, (and 16 other plugins)

System:

Android SDK Tools : 26.1.1 (C:UsersnameAppDataLocalAndroidSdk)
NodeJS : v8.12.0 (C:Program Filesnodejsnode.exe)
npm : 6.4.1
OS : Windows 10


I am really losing my mind what I allready tried:
changed this line in platform/android/project.properties



com.android.support:support-v4:+


to



com.android.support:support-v4:27.1.0


Than it throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException:
Multiple dex files define
Landroid/support/v13/view/DragAndDropPermissionsCompat;


Than what google gave me as answer on the error above is to add this in android defaultconfig:
multiDexEnabled true
line in the build.gradle file



like this:



android {
sourceSets {
main {}
}

defaultConfig {
versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
applicationId privateHelpers.extractStringFromManifest("package")

if (cdvMinSdkVersion != null) {
minSdkVersion cdvMinSdkVersion
}

multiDexEnabled true
}
}


But that throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException:
java.util.zip.ZipException: duplicate entry:
android/support/v13/view/DragStartHelper$1.class


Some additional information this is my cordova plugin list:



com.darktalker.cordova.screenshot 0.1.5 "Screenshot"
cordova-android-play-services-gradle-release 2.0.0 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 1.4.7 "cordova-android-support-gradle-release"
cordova-plugin-3dtouch 1.3.5 "3D Touch"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.3 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-deeplinks 1.0.17 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
org.apache.cordova.geolocation 0.3.6 "Geolocation"
phonegap-plugin-push 1.11.1 "PushPlugin"









share|improve this question

























  • Did you try removing the platform and adding it?

    – Aravind Bhat K
    Nov 21 '18 at 8:51













  • @AravindBhatK yes i did also tried to add android@7.0.0

    – Sireini
    Nov 21 '18 at 9:16











  • update cordova-android-support-gradle-release to v2.0.1

    – DaveAlden
    Nov 21 '18 at 10:25














0












0








0








I am trying to run the following command: ionic cordova run android but this throw me the following error:



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt


Here is my ionic info:



Ionic:

ionic (Ionic CLI) : 4.3.1 (C:Userssylvan.reinierenAppDataRoamingnpmnode_modulesionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 6.3.0
Cordova Plugins : cordova-plugin-ionic-webview 1.2.1, (and 16 other plugins)

System:

Android SDK Tools : 26.1.1 (C:UsersnameAppDataLocalAndroidSdk)
NodeJS : v8.12.0 (C:Program Filesnodejsnode.exe)
npm : 6.4.1
OS : Windows 10


I am really losing my mind what I allready tried:
changed this line in platform/android/project.properties



com.android.support:support-v4:+


to



com.android.support:support-v4:27.1.0


Than it throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException:
Multiple dex files define
Landroid/support/v13/view/DragAndDropPermissionsCompat;


Than what google gave me as answer on the error above is to add this in android defaultconfig:
multiDexEnabled true
line in the build.gradle file



like this:



android {
sourceSets {
main {}
}

defaultConfig {
versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
applicationId privateHelpers.extractStringFromManifest("package")

if (cdvMinSdkVersion != null) {
minSdkVersion cdvMinSdkVersion
}

multiDexEnabled true
}
}


But that throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException:
java.util.zip.ZipException: duplicate entry:
android/support/v13/view/DragStartHelper$1.class


Some additional information this is my cordova plugin list:



com.darktalker.cordova.screenshot 0.1.5 "Screenshot"
cordova-android-play-services-gradle-release 2.0.0 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 1.4.7 "cordova-android-support-gradle-release"
cordova-plugin-3dtouch 1.3.5 "3D Touch"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.3 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-deeplinks 1.0.17 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
org.apache.cordova.geolocation 0.3.6 "Geolocation"
phonegap-plugin-push 1.11.1 "PushPlugin"









share|improve this question
















I am trying to run the following command: ionic cordova run android but this throw me the following error:



FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt


Here is my ionic info:



Ionic:

ionic (Ionic CLI) : 4.3.1 (C:Userssylvan.reinierenAppDataRoamingnpmnode_modulesionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.0

Cordova:

cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 6.3.0
Cordova Plugins : cordova-plugin-ionic-webview 1.2.1, (and 16 other plugins)

System:

Android SDK Tools : 26.1.1 (C:UsersnameAppDataLocalAndroidSdk)
NodeJS : v8.12.0 (C:Program Filesnodejsnode.exe)
npm : 6.4.1
OS : Windows 10


I am really losing my mind what I allready tried:
changed this line in platform/android/project.properties



com.android.support:support-v4:+


to



com.android.support:support-v4:27.1.0


Than it throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException: com.android.dex.DexException:
Multiple dex files define
Landroid/support/v13/view/DragAndDropPermissionsCompat;


Than what google gave me as answer on the error above is to add this in android defaultconfig:
multiDexEnabled true
line in the build.gradle file



like this:



android {
sourceSets {
main {}
}

defaultConfig {
versionCode cdvVersionCode ?: new BigInteger("" + privateHelpers.extractIntFromManifest("versionCode"))
applicationId privateHelpers.extractStringFromManifest("package")

if (cdvMinSdkVersion != null) {
minSdkVersion cdvMinSdkVersion
}

multiDexEnabled true
}
}


But that throws me this error:



* What went wrong:
Execution failed for task ':transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException:
java.util.zip.ZipException: duplicate entry:
android/support/v13/view/DragStartHelper$1.class


Some additional information this is my cordova plugin list:



com.darktalker.cordova.screenshot 0.1.5 "Screenshot"
cordova-android-play-services-gradle-release 2.0.0 "cordova-android-play-services-gradle-release"
cordova-android-support-gradle-release 1.4.7 "cordova-android-support-gradle-release"
cordova-plugin-3dtouch 1.3.5 "3D Touch"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.3 "SocialSharing"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-deeplinks 1.0.17 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
org.apache.cordova.geolocation 0.3.6 "Geolocation"
phonegap-plugin-push 1.11.1 "PushPlugin"






android cordova ionic3 visual-studio-cordova






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 8:47







Sireini

















asked Nov 21 '18 at 8:38









SireiniSireini

1,41152852




1,41152852













  • Did you try removing the platform and adding it?

    – Aravind Bhat K
    Nov 21 '18 at 8:51













  • @AravindBhatK yes i did also tried to add android@7.0.0

    – Sireini
    Nov 21 '18 at 9:16











  • update cordova-android-support-gradle-release to v2.0.1

    – DaveAlden
    Nov 21 '18 at 10:25



















  • Did you try removing the platform and adding it?

    – Aravind Bhat K
    Nov 21 '18 at 8:51













  • @AravindBhatK yes i did also tried to add android@7.0.0

    – Sireini
    Nov 21 '18 at 9:16











  • update cordova-android-support-gradle-release to v2.0.1

    – DaveAlden
    Nov 21 '18 at 10:25

















Did you try removing the platform and adding it?

– Aravind Bhat K
Nov 21 '18 at 8:51







Did you try removing the platform and adding it?

– Aravind Bhat K
Nov 21 '18 at 8:51















@AravindBhatK yes i did also tried to add android@7.0.0

– Sireini
Nov 21 '18 at 9:16





@AravindBhatK yes i did also tried to add android@7.0.0

– Sireini
Nov 21 '18 at 9:16













update cordova-android-support-gradle-release to v2.0.1

– DaveAlden
Nov 21 '18 at 10:25





update cordova-android-support-gradle-release to v2.0.1

– DaveAlden
Nov 21 '18 at 10:25












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408092%2fionic-3-gradle-build-execution-failed-for-task%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53408092%2fionic-3-gradle-build-execution-failed-for-task%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?