*Error:Execution failed for task ':app:processDebugManifest' android studio - android-studio

enter image description here*Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services-ads:11.0.4] C:\Users\bob.android\build-cache\ffee37ec2ebb9fa5949d9f876f8678567ce55e66\output\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.google.android.gms.ads.impl" to force usage*

Related

Running flutter app in vscode and get this error Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'

i'm currently facing the problem in running my flutter app in physical device(phone). i'm using android studio 4 and vscode. The error message is below.
Launching lib\main.dart on TECNO B1f in debug mode...
lib\main.dart:1
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to find target with hash string 'android-29' in: C:\Users\Kitsson\AppData\Local\Android\sdk
* 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 7m 8s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
I would suggest 4 methods to solve this issue , try one after another until it works for you :
Open terminal - run flutter doctor --android-licenses. Just accept all and it should work, if it dosen't then skip to next step.
adding buildToolsVersion in android => app => build.gradle
android { compileSdkVersion 29 buildToolsVersion "29.0.0" ... ... }
This often happens when you have something in your dependency that require internet like firebase. Just turn on your internet or wifi .
If none of them works then turn off developer option and turn it on again by pressing build number 7 times, this will revoke all usb debugging autherisation and ask whether to trust your developing machine , press yes and you will be good to go

I am getting a e/cl error in android studio and need help solving it

I am working in android studio and keep getting this error on run
E/CL_magma: [ERROR] CL_magma - Unable to open shader file 'shaders/gles2.0/Primitive.shaderb'
[ERROR] CL_magma - Unable to open shader file 'shaders/gles2.0/Default.shaderb'
[ERROR] CL_magma - Failed to load texture file 'spot_light_glow.rgba4.tex'
E/CL_magma: [ERROR] CL_magma - Failed to load texture file 'light_flare.rgba4.tex'
A/CL_magma: [FATAL] CL_magma - Couldn't load the default shader.
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 8730 (Thread-440)
I am unsure of how to fix this - can anyone help

Tipsi stripe not working with android react native

I am working in RN 0.57.1 and because of stripe latest updates i need to upgrade my stripe package. App is working fine with iOS build but the android build failed regular, I am totally confused here how to fix this.
Here is my build.gradle code:
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 19
compileSdkVersion = 28
targetSdkVersion = 27
supportLibVersion = "28.0.0"
googlePlayServicesAuthVersion = "17.0.0"
}
Here is Error:
Task :app:processDebugResources FAILED
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
/Users/admin/.gradle/caches/transforms-2/files-2.1/847adf56c6204cd8db834c9987a748e4/stripe-3ds2-android-1.2.2/res/values/values.xml:84:5-86:13: AAPT: error: style attribute 'attr/boxBackgroundColor (aka com.mybeautysquad.customer:attr/boxBackgroundColor)' not found.
Please let me know if anyone can help me into this...Thanks!
I solved this on the latest version of RN using a very similar set up as you.
https://github.com/tipsi/tipsi-stripe/issues/504#issuecomment-583566852

Execution failed for task ':compileDebugJavaWithJavac' in ionic 3

I built an ionic app with ionic 3 on ionic-cli 3.19.0 and later updated it to 3.20.0
It stopped building the apk and started giving this error->
ti-ionic3/platforms/android/src/com/adobe/phonegap/push/FCMService.java:393: error: constructor Builder in class Builder
cannot be applied to given types;
mBuilder = new NotificationCompat.Builder(context, channelID);
^
required: Context
found: Context,String
reason: actual and formal argument lists differ in length
:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.

Android Studio: How to remove or disable javadoc generation from project build?

A third party SDK (Facebook) causes the build of my Android App to fail because its javadocs can not be created! This is one of the shiny new features of Android Studio 1.2 RC0, as everything worked perfectly before the update.
Here's the exact error message:
22:39:55.176 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
22:39:55.176 [ERROR] [org.gradle.BuildExceptionReporter]
22:39:55.177 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
22:39:55.177 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':facebook-sdk:androidJavadocs'.
22:39:55.177 [ERROR] [org.gradle.BuildExceptionReporter] > Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/..../project/libraries/facebook-android-sdk/facebook/build/tmp/androidJavadocs/javadoc.options'
Now I don't care about the Facebook javadocs at all! So what do I have to do to remove the javadoc generation of the Facebook SDK from the build? I.e. How can I get the project to compile and execute again?
Any advice is welcome, thank you!
Found the solution here:
https://bitbucket.org/hvisser/android-apt/issue/35/prevent-facebook-module-to-compile
I am past this line:tasks.findByPath(":facebook:androidJavadocs").enabled = false in my build.gradle file
Add Gradle by module:
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.addStringOption('encoding', 'UTF-8')
options.addStringOption('charSet', 'UTF-8')
}

Resources