Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] How to solve error “FAILURE:Build failed with an exception” in android studio?

Posted on November 11, 2022 By

Solution 1 :

Go to settings/build, execution, Deployment/ gradle/ and uncheck offline work and run build again

Solution 2 :

If all the think is best but not work you add this line

defaultConfig {
applicationId “com.sendpulse.sendpulse”

minSdkVersion 15

targetSdkVersion 21

multiDexEnabled true //Add me//

}

Problem :

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:mergeDebugResources’.

    Could not resolve all files for configuration ‘:app:_internal_aapt2_binary’.
    Could not resolve com.android.tools.build:aapt2:3.6.0-6040484.
    Required by:
    project :app
    No cached version of com.android.tools.build:aapt2:3.6.0-6040484 available for offline mode.
    No cached version of com.android.tools.build:aapt2:3.6.0-6040484 available for offline mode.

  • Try:
    Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 267ms
5 actionable tasks: 1 executed, 4 up-to-date

READ  [FIXED] android - Facebook Auth with Flutter not giving key hashes due to error in the command
Powered by Inline Related Posts
Android Tags:android, android-studio, build.gradle, exception, gradle

Post navigation

Previous Post: [FIXED] java – The Android LoaderManager is deprecated. Now what?
Next Post: [FIXED] android – Is WorkManager the right solution for me?

Related Posts

[FIXED] Android: how to dismiss a DatePicker DialogFragment when touching outside? Android
[FIXED] Android listener always null when attach in a DialogFragment Android
[FIXED] How to fetch tabular data from the web to an Android app using Java Android
[FIXED] java – Enum evaluates to null in android studio debugger Android
[FIXED] java – How to set two different fonts in two different Fragment (TabLayout) Android
[FIXED] android jetpack compose – Applying bottom padding to navigation bar Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What is a good substitute for condensed milk?
  • ¿Como el cuerpo te avisa cuando te va a dar un infarto?
  • What is the luxury brand of Jaguar?
  • Who is Big poppa baseball player?
  • What material are foam runners?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme