0

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring root project 'cloud_firestore'.

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

Rajesh
  • 91
  • 8
  • * What went wrong: Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > Android resource linking failed C:\Users\rajesh\Desktop\Flutter learning\loginsignup\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml:66: AAPT: error: resource string/app_name (aka com.example.loginsignup:string/app_name) not found. – Rajesh Dec 15 '21 at 05:18
  • app level build.gradle : defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.loginsignup" minSdkVersion 16 targetSdkVersion 29 versionCode flutterVersionCode.toInteger() versionName flutterVersionName multiDexEnabled true } – Rajesh Dec 15 '21 at 05:19
  • Please change `compileSdkVersion 30` and `targetSdkVersion 30` – Anmol Mishra Dec 15 '21 at 05:46
  • Even that is also not working getting same error – Rajesh Dec 15 '21 at 06:40
  • can you share console – Anmol Mishra Dec 15 '21 at 06:49
  • https://www.geeksforgeeks.org/fix-execution-failed-appprocessdebugresources-in-android-studio/ – Anmol Mishra Dec 15 '21 at 06:51
  • VSCODE: FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'cloud_firestore'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. * 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 2s Exception: The plugin cloud_firestore could not be built due to the issue above. – Rajesh Dec 15 '21 at 07:08
  • update gradle version and should work fine – Anmol Mishra Dec 15 '21 at 07:11
  • https://stackoverflow.com/questions/66920708/update-gradle-in-flutter-project – Anmol Mishra Dec 15 '21 at 07:18
  • could you please explain to me clearly i am unable to update gradle – Rajesh Dec 15 '21 at 07:26
  • https://stackoverflow.com/questions/27620262/sdk-location-not-found-define-location-with-sdk-dir-in-the-local-properties-fil – Anmol Mishra Dec 15 '21 at 12:04

0 Answers0