FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task :camera:compileDebugAidt > Failed to find Platrore SDK with path: platforms; android-29
Try:
Run with stacktrace option to get the stack trace.
Hun with --Inte or-debus option to get more log output
Run with scan to get rutt Insights.
Could not determine the dependencies of the task ':camera:compileDebugAidl'.
Related
I want help configuring the apk file I see this message
code flutter build apk --split-per-abi
Is there anyone to help me with this problem and thank you in advance
PS C:\Users\deuts\OneDrive\Bureau\vox\NewsPro v2.1.0\newspro\news_pro> flutter build apk --split-per-abi
Building with sound null safety
error: error reading C:\Users\deuts\.gradle\caches\modules-2\files-2.1\androidx.lifecycle\lifecycle-common-java8\2.4.0-beta01\5b8f86fea035328fc9e8c660773037a3401ce25f\lifecycle-common-java8-2.4.0-beta01.jar; zip END header not found
error: error reading C:\Users\deuts\.gradle\caches\modules-2\files-2.1\androidx.lifecycle\lifecycle-common\2.4.0-beta01\1fdb7349701e9cf2f0a69fc10642b6fef6bb3e12\lifecycle-common-2.4.0-beta01.jar; zip END header not found
C:\Users\deuts\OneDrive\Bureau\vox\NewsPro v2.1.0\newspro\news_pro\build\better_player\generated\source\buildConfig\release\com\jhomlala\better_player\BuildConfig.java:4: error: cannot access com.jhomlala.better_player
package com.jhomlala.better_player;
^
zip END header not found
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':better_player:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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 30s
Running Gradle task 'assembleRelease'... 32.5s
Gradle task assembleRelease failed with exit code 1
PS C:\Users\deuts\OneDrive\Bureau\vox\NewsPro v2.1.0\newspro\news_pro>
FAILURE: Build failed with an exception.
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
D:\Development\ULTIMAT POS\App POS Backup\UltimatePOS_Flutter_1.7.1\Ultimate_POS_Flutter\build\app\intermediates\packaged_manifests\debug\AndroidManifest.xml:34: AAPT: error: resource mipmap/launcher_icon (aka com.pnn.pos:mipmap/launcher_icon) not found.
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
Exception: Gradle task assembleDebug failed with exit code 1..........................
Android build failed due to mipmap/launcher_icon missing or path change. without launcher_icon app not install .
drag and drop app icon to mipmap & re-run ur app.
FAILURE: Build failed with an exception.
Where:
Build file 'C:\flutterproject\firstproject\android\untitled\android\build.gradle' line: 27
What went wrong:
A problem occurred evaluating root project 'android'.
A problem occurred configuring project ':app'.
Failed to notify project evaluation listener.
> 'org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProperty(org.gradle.api.provider.Provider)'
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 6s
Exception: Gradle task assembleDebug failed with exit code 1
File → Settings → Build, Execution, Deployment → Instant Run and
uncheck Enable Instant Run.
Hope it works.
FAILURE: Build failed with an exception.
What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find com.google.firebase:firebase-analytics:.
Required by:
project :app
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 45s
Exception: Gradle task assembleDebug failed with exit code 1
I am not really sure but try to :
Set your java SDK location in project settings
upgrade your buildToolsVersion in your build.gradle file. See which version is the latest and set it to that.
If neither of these methods work , save your project in a repository and re-download android studio if it comes to that.
You can even visit this thread and see if any of the methods solve your problem : Execution failed for task ':app:compileDebugJavaWithJavac' Android Studio 3.1 Update
my project was going great till i ran flutter clean and then tried to run my app on android,where i got this error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
* 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 20s
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
This issue will most likely occur when the dependencies of your app is not compatible with your development environment.
On the following SO posts, the best solution for this error is to update the dependencies as also mentioned in the comment above. To backup the references, you can refer to this SO post that exhibits the issues encountered:
Flutter error: Execution failed for task ':app:compileDebugJavaWithJavac'
Execution Failed for task :app:compileDebugJavaWithJavac in Android Studio