Admob and RevenueCat Compatiablitly problem in Unity3D - android

After importing the RevenuCat package along side Admob or Vice versa, android resolver in unity runs and runs for like 30 mins and crashes. Even if no crash happens and the game is built, the game gives following errors.
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease
> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:FirebaseApp.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:FirebaseApp.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:FirebaseCrashlytics.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:mergeReleaseJniLibFolders
> Task :unityLibrary:generateReleaseRFile
> Task :unityLibrary:mergeReleaseNativeLibs
> Task :unityLibrary:stripReleaseDebugSymbols
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly
> Task :unityLibrary:copyReleaseJniLibsProjectOnly
> Task :launcher:processReleaseManifest
> Task :launcher:prepareLintJar UP-TO-DATE
> Task :launcher:checkReleaseDuplicateClasses FAILED
> Task :launcher:mergeReleaseResources
> Task :unityLibrary:compileReleaseJavaWithJavac
> Task :unityLibrary:compileReleaseJavaWithJavac FAILED
80 actionable tasks: 28 executed, 52 up-to-date
#0 GetStacktrace(int)
#1 DebugStringToFile(DebugStringToFileData const&)
#2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
#3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
#4 (Mono JIT Code) UnityEditor.Android.PostProcessAndroidPlayer:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput)
#5 (Mono JIT Code) UnityEditor.Android.AndroidBuildPostprocessor:PostProcess (UnityEditor.Modules.BuildPostProcessArgs,UnityEditor.BuildProperties&)
#6 (Mono JIT Code) [PostprocessBuildPlayer.cs:371] UnityEditor.PostprocessBuildPlayer:Postprocess (UnityEditor.BuildTargetGroup,UnityEditor.BuildTarget,int,string,string,string,int,int,UnityEditor.BuildOptions,UnityEditor.RuntimeClassRegistry,UnityEditor.Build.Reporting.BuildReport)
#7 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_int_int_object_object_object_int_int_int_object_object (object,intptr,intptr,intptr)
#8 mono_get_runtime_build_info
#9 mono_runtime_invoke
#10 mono_runtime_invoke
#11 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)
#12 ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)
#13 CallMono(char const*, char const*, char const*, ScriptingArguments const&)
#14 DoBuildPlayer(BuildPlayerSetup const&, std::vector<EditorSceneBackup, stl_allocator<EditorSceneBackup, (MemLabelIdentifier)124, 16> >&, core::basic_string<char, core::StringStorageDefault<char> >, dynamic_array<core::basic_string<char, core::StringStorageDefault<char> >, 0ul> const&, bool, BuildReporting::BuildReport&, BuildReporting::BuiltAssetBundleInfo*, core::basic_string<char, core::StringStorageDefault<char> > const&)
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:5: error: cannot find symbol
import androidx.annotation.NonNull;
^
symbol: class NonNull
location: package androidx.annotation
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:6: error: cannot find symbol
import androidx.annotation.Nullable;
^
symbol: class Nullable
location: package androidx.annotation
warning: /home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/classes.jar(com/samsung/android/gamesdk/GameSDKManager.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:106: error: cannot find symbol
#Nullable final String oldSKU,
^
symbol: class Nullable
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:133: error: cannot find symbol
#Nullable final String oldSKU,
^
symbol: class Nullable
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:421: error: cannot find symbol
#NonNull
^
symbol: class NonNull
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:446: error: cannot find symbol
#NonNull
^
symbol: class NonNull
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:461: error: cannot find symbol
#Nullable
^
symbol: class Nullable
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:51: error: cannot find symbol
public void onReceived(#NonNull CustomerInfo customerInfo) {
^
symbol: class NonNull
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors
1 warning
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.firebase.installations.AutoValue_InstallationTokenResult found in modules com.google.firebase.firebase-installations-interop-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-interop-17.0.1:) and com.google.firebase.firebase-installations-interop-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-interop-17.1.0:)
Duplicate class com.google.firebase.installations.AutoValue_InstallationTokenResult$1 found in modules com.google.firebase.firebase-installations-interop-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-interop-17.0.1:) and com.google.firebase.firebase-installations-interop-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-interop-17.1.0:)
Duplicate class com.google.firebase.installations.AutoValue_InstallationTokenResult$Builder found in modules com.google.firebase.firebase-installations-interop-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-interop-17.0.1:) and com.google.firebase.firebase-installations-interop-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-interop-17.1.0:)
Duplicate class com.google.firebase.installations.AwaitListener found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.BuildConfig found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.CrossProcessLock found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.FirebaseInstallations found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.FirebaseInstallations$1 found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.FirebaseInstallations$2 found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
CommandInvokationFailure: Gradle build failed.
CommandInvokationFailure: Gradle build failed.
/home/vinaytejareddy/Unity/Hub/Editor/2021.3.17f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/home/vinaytejareddy/Unity/Hub/Editor/2021.3.17f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-6.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
Environment Variables:
XMODIFIERS = #im=ibus
GDK_BACKEND = x11
XDG_CONFIG_DIRS = /etc/xdg/xdg-ubuntu:/etc/xdg
GIO_LAUNCHED_DESKTOP_FILE_PID = 8809
XDG_SESSION_TYPE = x11
INVOCATION_ID = 8a222f05b6d74f44b1ddac952825483a
JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF-8
WINDOWPATH = 2
GTK_MODULES = gail:atk-bridge
SHLVL = 0
MANAGERPID = 1916
QT_IM_MODULE = ibus
LANGUAGE = en_IN:en
LOGNAME = vinaytejareddy
XDG_CURRENT_DESKTOP = Unity
GNOME_DESKTOP_SESSION_ID = this-is-deprecated
JAVA_HOME = /home/vinaytejareddy/Unity/Hub/Editor/2021.3.17f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK
LANG = en_IN
XDG_RUNTIME_DIR = /run/user/1000
JOURNAL_STREAM = 8:43190
ANDROID_NDK_ROOT = /home/vinaytejareddy/Unity/Hub/Editor/2021.3.17f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK
USERNAME = vinaytejareddy
GJS_DEBUG_TOPICS = JS ERROR;JS LOG
PWD = /home/vinaytejareddy
SESSION_MANAGER = local/vinayteja:#/tmp/.ICE-unix/2210,unix/vinayteja:/tmp/.ICE-unix/2210
USER = vinaytejareddy
CHROME_DESKTOP = unityhub.desktop
SSH_AGENT_LAUNCHER = gnome-keyring
MANDATORY_PATH = /usr/share/gconf/ubuntu.mandatory.path
NO_AT_BRIDGE = 1
XDG_DATA_DIRS = /usr/share/ubuntu:/usr/share/gnome:/home/vinaytejareddy/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
SHELL = /usr/bin/zsh
GIO_LAUNCHED_DESKTOP_FILE = /usr/share/applications/unityhub.desktop
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
QT_ACCESSIBILITY = 1
XAUTHORITY = /run/user/1000/gdm/Xauthority
SSH_AUTH_SOCK = /run/user/1000/keyring/ssh
DBUS_SESSION_BUS_ADDRESS = unix:path=/run/user/1000/bus
GPG_AGENT_INFO = /run/user/1000/gnupg/S.gpg-agent:0:1
GDMSESSION = ubuntu
__GL_SYNC_TO_VBLANK = 0
XDG_SESSION_CLASS = user
HOME = /home/vinaytejareddy
DESKTOP_SESSION = ubuntu
ORIGINAL_XDG_CURRENT_DESKTOP = ubuntu:GNOME
GNOME_SHELL_SESSION_MODE = ubuntu
DISPLAY = :1
XDG_SESSION_DESKTOP = ubuntu
GJS_DEBUG_OUTPUT = stderr
DEFAULTS_PATH = /usr/share/gconf/ubuntu.default.path
SYSTEMD_EXEC_PID = 2230
XDG_MENU_PREFIX = gnome-
BURST_ANDROID_MIN_API_LEVEL = 22
stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:5: error: cannot find symbol
import androidx.annotation.NonNull;
^
symbol: class NonNull
location: package androidx.annotation
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:6: error: cannot find symbol
import androidx.annotation.Nullable;
^
symbol: class Nullable
location: package androidx.annotation
warning: /home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/libs/classes.jar(com/samsung/android/gamesdk/GameSDKManager.class): major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:106: error: cannot find symbol
#Nullable final String oldSKU,
^
symbol: class Nullable
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:133: error: cannot find symbol
#Nullable final String oldSKU,
^
symbol: class Nullable
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:421: error: cannot find symbol
#NonNull
^
symbol: class NonNull
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:446: error: cannot find symbol
#NonNull
^
symbol: class NonNull
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:461: error: cannot find symbol
#Nullable
^
symbol: class Nullable
location: class PurchasesWrapper
/home/vinaytejareddy/Vinay/GameDevelopment/MyGame/MyGame2.0/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/src/main/java/com/revenuecat/purchasesunity/PurchasesWrapper.java:51: error: cannot find symbol
public void onReceived(#NonNull CustomerInfo customerInfo) {
^
symbol: class NonNull
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 errors
1 warning
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
java.lang.RuntimeException: Duplicate class com.google.firebase.installations.AutoValue_InstallationTokenResult found in modules com.google.firebase.firebase-installations-interop-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-interop-17.0.1:) and com.google.firebase.firebase-installations-interop-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-interop-17.1.0:)
Duplicate class com.google.firebase.installations.AutoValue_InstallationTokenResult$1 found in modules com.google.firebase.firebase-installations-interop-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-interop-17.0.1:) and com.google.firebase.firebase-installations-interop-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-interop-17.1.0:)
Duplicate class com.google.firebase.installations.AutoValue_InstallationTokenResult$Builder found in modules com.google.firebase.firebase-installations-interop-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-interop-17.0.1:) and com.google.firebase.firebase-installations-interop-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-interop-17.1.0:)
Duplicate class com.google.firebase.installations.AwaitListener found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.BuildConfig found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.CrossProcessLock found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
Duplicate class com.google.firebase.installations.FirebaseInstallations found in modules com.google.firebase.firebase-installations-17.0.1-runtime.jar (:com.google.firebase.firebase-installations-17.0.1:) and com.google.firebase.firebase-installations-17.1.0-runtime.jar (:com.google.firebase.firebase-installations-17.1.0:)
UnityEditor.BuildPlayerWindow+BuildMethodException: 5 errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ce] in /home/bokken/build/output/unity/unity/Editor/Mono/BuildPlayerWindowBuildMethods.cs:193
at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in /home/bokken/build/output/unity/unity/Editor/Mono/BuildPlayerWindowBuildMethods.cs:94
#0 GetStacktrace(int)
#1 DebugStringToFile(DebugStringToFileData const&)
#2 DebugLogHandler_CUSTOM_Internal_Log(LogType, LogOption, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
#3 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
#4 (Mono JIT Code) [BuildPlayerWindow.cs:1172] UnityEditor.BuildPlayerWindow:GUIBuildButtons (UnityEditor.Modules.IBuildWindowExtension,bool,bool,bool,UnityEditor.Build.BuildPlatform,UnityEditor.Modules.IBuildPostprocessor)

First import AdMob package ,but import only the file inside the
folder GoogleMobileAds with the name
“GoogleMobileAdsDependencies.xml”
update the dependencies in the file to latest version, point 3 is original file, point 4 is updated file after changing versions
<dependencies>
<androidPackages>
<androidPackage spec="com.google.android.gms:play-services-ads:21.3.0">
<repositories>
<repository>https://maven.google.com/</repository>
</repositories>
</androidPackage>
<androidPackage spec="androidx.lifecycle:lifecycle-common-java8:2.4.1">
<repositories>
<repository>https://maven.google.com/</repository>
</repositories>
</androidPackage>
<androidPackage spec="androidx.lifecycle:lifecycle-process:2.4.1">
<repositories>
<repository>https://maven.google.com/</repository>
</repositories>
</androidPackage>
</androidPackages>
<iosPods>
<iosPod name="Google-Mobile-Ads-SDK" version="~> 9.11">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>
https://maven.google.com/
https://maven.google.com/
https://maven.google.com/
9.11">
https://github.com/CocoaPods/Specs
then reimport AdMob package ,untick the “GoogleMobileAdsDependencies.xml” file before importing
android resolver will do it’s work
then “Clean Build” the project
Successfully Built and no dependency problem with RevenueCat package.

Related

expo sdk 41 - unable to build standalone apk/aab

I recently upgraded my expo's SDK version from 35 to 41 and also upgraded expo-cli from 3.18.5 to 4.4.3.
However, when I try to build a standalone APK/AAB, I'm getting the following error:
× Build failed. Standalone build failed!
In order to understand what was exactly causing this issue, I examined the Gradle logs of build Gradle on expo, and here's what I was able to find.
Installing unimodules:
unimodules-core#7.1.0 from /app/turtle/workingdir/android/sdk41/packages/#unimodules/core
unimodules-react-native-adapter#6.2.2 from /app/turtle/workingdir/android/sdk41/packages/#unimodules/react-native-adapter
expo-application#3.1.2 from /app/turtle/workingdir/android/sdk41/packages/expo-application
expo-barcode-scanner#10.1.2 from /app/turtle/workingdir/android/sdk41/packages/expo-barcode-scanner
expo-camera#11.0.2 from /app/turtle/workingdir/android/sdk41/packages/expo-camera
expo-constants#10.1.3 from /app/turtle/workingdir/android/sdk41/packages/expo-constants
expo-error-recovery#2.1.0 from /app/turtle/workingdir/android/sdk41/packages/expo-error-recovery
expo-file-system#11.0.2 from /app/turtle/workingdir/android/sdk41/packages/expo-file-system
expo-font#9.1.0 from /app/turtle/workingdir/android/sdk41/packages/expo-font
expo-image-loader#2.1.1 from /app/turtle/workingdir/android/sdk41/packages/expo-image-loader
expo-keep-awake#9.1.2 from /app/turtle/workingdir/android/sdk41/packages/expo-keep-awake
expo-notifications#0.11.6 from /app/turtle/workingdir/android/sdk41/packages/expo-notifications
unimodules-app-loader#2.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-app-loader
expo-permissions#12.0.1 from /app/turtle/workingdir/android/sdk41/packages/expo-permissions
unimodules-barcode-scanner-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-barcode-scanner-interface
unimodules-camera-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-camera-interface
unimodules-constants-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-constants-interface
unimodules-face-detector-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-face-detector-interface
unimodules-file-system-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-file-system-interface
unimodules-font-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-font-interface
unimodules-image-loader-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-image-loader-interface
unimodules-permissions-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-permissions-interface
unimodules-sensors-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-sensors-interface
unimodules-task-manager-interface#6.1.0 from /app/turtle/workingdir/android/sdk41/packages/unimodules-task-manager-interface
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Task :app:preBuild UP-TO-DATE
> Task :app:extractProguardFiles
> Task :app:preReleaseBuild
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:generateReleaseResValues
> Task :app:generateReleaseResources
> Task :app:processReleaseGoogleServices
Parsing json file: /app/turtle/workingdir/android/sdk41/android-shell-app/app/google-services.json
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :app:mergeReleaseResources
> Task :app:processReleaseMainManifest
[com.facebook.soloader:soloader:0.8.2] /root/.gradle/caches/transforms-3/cfd0b9e5b303f54f13e669e38ab029ae/transformed/jetified-soloader-0.8.2/AndroidManifest.xml Warning:
Package name 'com.facebook.soloader' used in: com.facebook.soloader:soloader:0.8.2, com.facebook.soloader:annotation:0.8.2.
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:35:1-94 Warning:
Element uses-permission#android.permission.SYSTEM_ALERT_WINDOW at AndroidManifest.xml:35:1-94 duplicated with element declared at AndroidManifest.xml:16:3-76
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:23:1-101 Warning:
uses-permission#android.permission.ACCESS_BACKGROUND_LOCATION was tagged at AndroidManifest.xml:23 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:24:1-87 Warning:
uses-permission#android.permission.RECORD_AUDIO was tagged at AndroidManifest.xml:24 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:26:1-89 Warning:
uses-permission#android.permission.WRITE_CONTACTS was tagged at AndroidManifest.xml:26 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:32:1-88 Warning:
uses-permission#android.permission.USE_BIOMETRIC was tagged at AndroidManifest.xml:32 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:33:1-82 Warning:
uses-permission#android.permission.VIBRATE was tagged at AndroidManifest.xml:33 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:34:1-91 Warning:
uses-permission#android.permission.READ_PHONE_STATE was tagged at AndroidManifest.xml:34 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:35:1-94 Warning:
uses-permission#android.permission.SYSTEM_ALERT_WINDOW was tagged at AndroidManifest.xml:35 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:37:1-83 Warning:
uses-permission#android.permission.READ_SMS was tagged at AndroidManifest.xml:37 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:38:1-99 Warning:
uses-permission#android.permission.REQUEST_INSTALL_PACKAGES was tagged at AndroidManifest.xml:38 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:41:1-104 Warning:
uses-permission#com.android.launcher.permission.INSTALL_SHORTCUT was tagged at AndroidManifest.xml:41 to remove other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:208:5-213:39 Warning:
activity#com.facebook.FacebookActivity#android:theme was tagged at AndroidManifest.xml:208 to replace other declarations but no other declaration present
/app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/AndroidManifest.xml:17:9-26:20 Warning:
provider#expo.modules.filesystem.FileSystemFileProvider#android:authorities was tagged at AndroidManifest.xml:17 to replace other declarations but no other declaration present
> Task :app:processReleaseManifest
> Task :app:processApplicationManifestReleaseForBundle
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders NO-SOURCE
> Task :app:generateReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseAssets
> Task :app:compileReleaseAidl
NO-SOURCE
> Task :app:generateReleaseBuildConfig
> Task :app:checkReleaseDuplicateClasses
> Task :app:javaPreCompileRelease
> Task :app:checkReleaseAarMetadata
> Task :app:processReleaseJavaRes NO-SOURCE
> Task :app:bundleReleaseResources
> Task :app:mergeReleaseJniLibFolders
> Task :app:collectReleaseDependencies
> Task :app:configureReleaseDependencies
> Task :app:parseReleaseIntegrityConfig
> Task :app:validateSigningRelease
> Task :app:processReleaseManifestForPackage
> Task :app:mergeReleaseNativeLibs
> Task :app:processReleaseResources
> Task :app:mergeReleaseJavaResource
> Task :app:compileReleaseJavaWithJavac
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:8: error: package expo.modules.splashscreen does not exist
[stderr] import expo.modules.splashscreen.SplashScreenImageResizeMode;
[stderr] ^
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:25: error: cannot find symbol
[stderr] public static SplashScreenImageResizeMode SPLASH_SCREEN_IMAGE_RESIZE_MODE = SplashScreenImageResizeMode.CONTAIN;
[stderr] ^
[stderr] symbol: class SplashScreenImageResizeMode
[stderr] location: class AppConstants
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:25: error: cannot find symbol
[stderr] public static SplashScreenImageResizeMode SPLASH_SCREEN_IMAGE_RESIZE_MODE = SplashScreenImageResizeMode.CONTAIN;
[stderr] ^
[stderr] symbol: variable SplashScreenImageResizeMode
[stderr] location: class AppConstants
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:53: error: cannot access SplashScreenImageResizeMode
[stderr] constants.SPLASH_SCREEN_IMAGE_RESIZE_MODE = SPLASH_SCREEN_IMAGE_RESIZE_MODE;
[stderr] ^
[stderr] class file for expo.modules.splashscreen.SplashScreenImageResizeMode not found
[stderr] 4 errors
> Task :app:compileReleaseJavaWithJavac FAILED
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:compileReleaseJavaWithJavac'.
[stderr] > Compilation failed; see the compiler error output for details.
[stderr] * Try:
[stderr] 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.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 35s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
26 actionable tasks: 26 executed
Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/app/turtle/node_modules/#expo/xdl/node_modules/#expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (events.js:418:26)
at ChildProcess.emit (events.js:311:20)
at ChildProcess.EventEmitter.emit (domain.js:482:12)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
...
at spawnAsync (/app/turtle/node_modules/#expo/xdl/node_modules/#expo/spawn-async/build/spawnAsync.js:17:21)
at spawnAsyncThrowError (/app/turtle/node_modules/#expo/xdl/build/detach/ExponentTools.js:201:45)
at buildShellAppAsync (/app/turtle/node_modules/#expo/xdl/build/detach/AndroidShellApp.js:976:11)
at async Object.createAndroidShellAppAsync (/app/turtle/node_modules/#expo/xdl/build/detach/AndroidShellApp.js:396:5)
at async runShellAppBuilder (/app/turtle/build/builders/android.js:95:9)
at async Object.buildAndroid [as android] (/app/turtle/build/builders/android.js:43:28)
at async build (/app/turtle/build/jobManager.js:181:33)
at async processJob (/app/turtle/build/jobManager.js:118:32)
at async Object.doJob (/app/turtle/build/jobManager.js:49:5)
at async main (/app/turtle/build/server.js:66:13)
If we notice the above logs, it can be seen that the issue is mostly pertaining to the Splash screen.
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:8: error: package expo.modules.splashscreen does not exist
[stderr] import expo.modules.splashscreen.SplashScreenImageResizeMode;
[stderr] ^
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:25: error: cannot find symbol
[stderr] public static SplashScreenImageResizeMode SPLASH_SCREEN_IMAGE_RESIZE_MODE = SplashScreenImageResizeMode.CONTAIN;
[stderr] ^
[stderr] symbol: class SplashScreenImageResizeMode
[stderr] location: class AppConstants
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:25: error: cannot find symbol
[stderr] public static SplashScreenImageResizeMode SPLASH_SCREEN_IMAGE_RESIZE_MODE = SplashScreenImageResizeMode.CONTAIN;
[stderr] ^
[stderr] symbol: variable SplashScreenImageResizeMode
[stderr] location: class AppConstants
[stderr] /app/turtle/workingdir/android/sdk41/android-shell-app/app/src/main/java/host/exp/exponent/generated/AppConstants.java:53: error: cannot access SplashScreenImageResizeMode
[stderr] constants.SPLASH_SCREEN_IMAGE_RESIZE_MODE = SPLASH_SCREEN_IMAGE_RESIZE_MODE;
[stderr] ^
[stderr] class file for expo.modules.splashscreen.SplashScreenImageResizeMode not found
[stderr] 4 errors
> Task :app:compileReleaseJavaWithJavac FAILED
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:compileReleaseJavaWithJavac'.
[stderr] > Compilation failed; see the compiler error output for details.
[stderr] * Try:
[stderr] 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.
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 35s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
Here's my app.json
{
"expo": {
"name": "APP_NAME",
"slug": "APP_SLUG",
"platforms": [
"ios",
"android",
"web"
],
"version": "1.0.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true,
"bundleIdentifier": "BUNDLE_IDENTIFIER"
},
"android": {
"package": "APP_PACKAGE",
"softwareKeyboardLayoutMode": "pan",
"versionCode": 1,
"permissions": [
"CAMERA"
],
"enableDangerousExperimentalLeanBuilds": true
}
}
}
The builds were successful with the older SDK version, but few packages were not compatible with the older SDK, hence I had to upgrade it to the latest. The application is running perfectly fine in the expo go mobile application, but unable to build a standalone app.
How to solve this problem? Or, is it possible to downgrade from SDK 41 to 40 or 39? Any suggestions or recommendation is appreciated.
There are two major reasons for this cause.
Setting enableDangerousExperimentalLeanBuils to true.
Missing expo-splash-screen package.
The error is because it's(Gradle build) looking for expo-modules-splashscreen package, which is supposedly moved out of expo's main module in SDK 41, hence needs to be separately installed.
In order to fix this, there are two workarounds:
Remove enableDangerousExperimentalLeanBuilds property. (Not tested)
Install expo-splash-screen using npm install expo-splash-screen.(Tested and working)

firebase Authtentication isn't working on App's apk even it's working on debug mode

i have been working on Flutter and using Firebase Authtentication. while i was coding my app i could log in with 3 ways: Phone Authentication, Google sign in and E-mail Authentication. on my app's apk i cant log in with Phone Authentication. after i got this error i tried on debug mode again and Phone Auth is still working. i cant get this issue. i did controlled SHA-1 and SHA-256 finger prints and both of them is correct. o apk i am getting this error:
[firebase_auth/app-not-authrized] This app is not authorized to use Firebase Authtentication. Please verify that the correct package name and SHA-1 are configured in Firebase Console. [A safety_net_token was passed, but no matching SHA-256 was registered in the Firebase Console. Please make sure that this application's packageName/SHA256 pair is registered in the Firebase Console.]
i am sure that SHA-256 is registered and correct. what is the reason of this error?
April 15th UPDATE:
i deleted SHA1, SH256 keys and then get and save them again to Firebase Console. download the new google-services.json file and replace the old one but Authentication is not still working on apk even goes on working on debug mode on my real device. sign in with Email is working on apk and debug but Google SignIN and Phone auth is not. i am getting
PlatfomrException(sign_in_failed, com.google.android.gms.common.api.b: 10: ,null, null)
error if i try Sign in with Google and phone auth error continue the same here is my apk build output maybe it will help for solution:
Executing tasks: [:app:assembleRelease] in project C:\ornekler\sby_cpal_demo\android
> Configure project :app
WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
> Task :app:compileFlutterBuildRelease
> Task :app:packLibsflutterBuildRelease
> Task :app:preBuild UP-TO-DATE
> Task :app:extractProguardFiles
> Task :app:preReleaseBuild
> Task :cloud_firestore:preBuild UP-TO-DATE
> Task :cloud_firestore:preReleaseBuild UP-TO-DATE
> Task :firebase_core:preBuild UP-TO-DATE
> Task :firebase_core:preReleaseBuild UP-TO-DATE
> Task :file_picker:preBuild UP-TO-DATE
> Task :file_picker:preReleaseBuild UP-TO-DATE
> Task :flutter_plugin_android_lifecycle:preBuild UP-TO-DATE
> Task :flutter_plugin_android_lifecycle:preReleaseBuild UP-TO-DATE
> Task :flutter_plugin_android_lifecycle:compileReleaseAidl NO-SOURCE
> Task :file_picker:compileReleaseAidl NO-SOURCE
> Task :firebase_core:compileReleaseAidl NO-SOURCE
> Task :cloud_firestore:compileReleaseAidl NO-SOURCE
> Task :firebase_auth:preBuild UP-TO-DATE
> Task :firebase_auth:preReleaseBuild UP-TO-DATE
> Task :firebase_auth:compileReleaseAidl NO-SOURCE
> Task :firebase_messaging:preBuild UP-TO-DATE
> Task :firebase_messaging:preReleaseBuild UP-TO-DATE
> Task :firebase_storage:preBuild UP-TO-DATE
> Task :firebase_storage:preReleaseBuild UP-TO-DATE
> Task :flutter_sms:preBuild UP-TO-DATE
> Task :flutter_sms:preReleaseBuild UP-TO-DATE
> Task :flutter_user_agent:preBuild UP-TO-DATE
> Task :flutter_user_agent:preReleaseBuild UP-TO-DATE
> Task :flutter_user_agent:compileReleaseAidl NO-SOURCE
> Task :firebase_storage:compileReleaseAidl NO-SOURCE
> Task :url_launcher:preBuild UP-TO-DATE
> Task :url_launcher:preReleaseBuild UP-TO-DATE
> Task :url_launcher:compileReleaseAidl NO-SOURCE
> Task :flutter_sms:compileReleaseAidl NO-SOURCE
> Task :google_sign_in:preBuild UP-TO-DATE
> Task :google_sign_in:preReleaseBuild UP-TO-DATE
> Task :firebase_messaging:compileReleaseAidl NO-SOURCE
> Task :image_picker:preBuild UP-TO-DATE
> Task :image_picker:preReleaseBuild UP-TO-DATE
> Task :image_picker:compileReleaseAidl NO-SOURCE
> Task :google_sign_in:compileReleaseAidl NO-SOURCE
> Task :app:compileReleaseAidl NO-SOURCE
> Task :cloud_firestore:packageReleaseRenderscript NO-SOURCE
> Task :file_picker:packageReleaseRenderscript NO-SOURCE
> Task :firebase_auth:packageReleaseRenderscript NO-SOURCE
> Task :firebase_core:packageReleaseRenderscript NO-SOURCE
> Task :firebase_messaging:packageReleaseRenderscript NO-SOURCE
> Task :firebase_storage:packageReleaseRenderscript NO-SOURCE
> Task :flutter_plugin_android_lifecycle:packageReleaseRenderscript NO-SOURCE
> Task :flutter_sms:packageReleaseRenderscript NO-SOURCE
> Task :flutter_user_agent:packageReleaseRenderscript NO-SOURCE
> Task :google_sign_in:packageReleaseRenderscript NO-SOURCE
> Task :image_picker:packageReleaseRenderscript NO-SOURCE
> Task :url_launcher:packageReleaseRenderscript NO-SOURCE
> Task :app:compileReleaseRenderscript NO-SOURCE
> Task :app:generateReleaseBuildConfig
> Task :app:cleanMergeReleaseAssets UP-TO-DATE
> Task :app:mergeReleaseShaders
> Task :app:compileReleaseShaders
> Task :app:generateReleaseAssets
> Task :cloud_firestore:mergeReleaseShaders
> Task :cloud_firestore:compileReleaseShaders
> Task :cloud_firestore:generateReleaseAssets
> Task :cloud_firestore:packageReleaseAssets
> Task :file_picker:mergeReleaseShaders
> Task :file_picker:compileReleaseShaders
> Task :file_picker:generateReleaseAssets
> Task :file_picker:packageReleaseAssets
> Task :firebase_auth:mergeReleaseShaders
> Task :firebase_auth:compileReleaseShaders
> Task :firebase_auth:generateReleaseAssets
> Task :firebase_auth:packageReleaseAssets
> Task :firebase_core:mergeReleaseShaders
> Task :firebase_core:compileReleaseShaders
> Task :firebase_core:generateReleaseAssets
> Task :firebase_core:packageReleaseAssets
> Task :firebase_messaging:mergeReleaseShaders
> Task :firebase_messaging:compileReleaseShaders
> Task :firebase_messaging:generateReleaseAssets
> Task :firebase_messaging:packageReleaseAssets
> Task :firebase_storage:mergeReleaseShaders
> Task :firebase_storage:compileReleaseShaders
> Task :firebase_storage:generateReleaseAssets
> Task :firebase_storage:packageReleaseAssets
> Task :flutter_plugin_android_lifecycle:mergeReleaseShaders
> Task :flutter_plugin_android_lifecycle:compileReleaseShaders
> Task :flutter_plugin_android_lifecycle:generateReleaseAssets
> Task :flutter_plugin_android_lifecycle:packageReleaseAssets
> Task :flutter_sms:mergeReleaseShaders
> Task :flutter_sms:compileReleaseShaders
> Task :flutter_sms:generateReleaseAssets
> Task :flutter_sms:packageReleaseAssets
> Task :flutter_user_agent:mergeReleaseShaders
> Task :flutter_user_agent:compileReleaseShaders
> Task :flutter_user_agent:generateReleaseAssets
> Task :flutter_user_agent:packageReleaseAssets
> Task :google_sign_in:mergeReleaseShaders
> Task :google_sign_in:compileReleaseShaders
> Task :google_sign_in:generateReleaseAssets
> Task :google_sign_in:packageReleaseAssets
> Task :image_picker:mergeReleaseShaders
> Task :image_picker:compileReleaseShaders
> Task :image_picker:generateReleaseAssets
> Task :image_picker:packageReleaseAssets
> Task :url_launcher:mergeReleaseShaders
> Task :url_launcher:compileReleaseShaders
> Task :url_launcher:generateReleaseAssets
> Task :url_launcher:packageReleaseAssets
> Task :app:mergeReleaseAssets
> Task :app:copyFlutterAssetsRelease
> Task :app:mainApkListPersistenceRelease
> Task :app:generateReleaseResValues
> Task :app:generateReleaseResources
> Task :app:processReleaseGoogleServices
> Task :cloud_firestore:generateReleaseResValues
> Task :cloud_firestore:compileReleaseRenderscript NO-SOURCE
> Task :cloud_firestore:generateReleaseResources
> Task :cloud_firestore:packageReleaseResources
> Task :file_picker:generateReleaseResValues
> Task :file_picker:compileReleaseRenderscript NO-SOURCE
> Task :file_picker:generateReleaseResources
> Task :file_picker:packageReleaseResources
> Task :firebase_auth:generateReleaseResValues
> Task :firebase_auth:compileReleaseRenderscript NO-SOURCE
> Task :firebase_auth:generateReleaseResources
> Task :firebase_auth:packageReleaseResources
> Task :firebase_core:generateReleaseResValues
> Task :firebase_core:compileReleaseRenderscript NO-SOURCE
> Task :firebase_core:generateReleaseResources
> Task :firebase_core:packageReleaseResources
> Task :firebase_messaging:generateReleaseResValues
> Task :firebase_storage:generateReleaseResValues
> Task :firebase_messaging:compileReleaseRenderscript NO-SOURCE
> Task :firebase_messaging:generateReleaseResources
> Task :firebase_messaging:packageReleaseResources
> Task :firebase_storage:compileReleaseRenderscript NO-SOURCE
> Task :firebase_storage:generateReleaseResources
> Task :firebase_storage:packageReleaseResources
> Task :flutter_plugin_android_lifecycle:generateReleaseResValues
> Task :flutter_plugin_android_lifecycle:compileReleaseRenderscript NO-SOURCE
> Task :flutter_plugin_android_lifecycle:generateReleaseResources
> Task :flutter_plugin_android_lifecycle:packageReleaseResources
> Task :flutter_sms:generateReleaseResValues
> Task :flutter_sms:compileReleaseRenderscript NO-SOURCE
> Task :flutter_sms:generateReleaseResources
> Task :flutter_sms:packageReleaseResources
> Task :flutter_user_agent:generateReleaseResValues
> Task :flutter_user_agent:compileReleaseRenderscript NO-SOURCE
> Task :flutter_user_agent:generateReleaseResources
> Task :flutter_user_agent:packageReleaseResources
> Task :google_sign_in:generateReleaseResValues
> Task :google_sign_in:compileReleaseRenderscript NO-SOURCE
> Task :google_sign_in:generateReleaseResources
> Task :google_sign_in:packageReleaseResources
> Task :image_picker:generateReleaseResValues
> Task :image_picker:compileReleaseRenderscript NO-SOURCE
> Task :image_picker:generateReleaseResources
> Task :image_picker:packageReleaseResources
> Task :url_launcher:generateReleaseResValues
> Task :url_launcher:compileReleaseRenderscript NO-SOURCE
> Task :url_launcher:generateReleaseResources
> Task :url_launcher:packageReleaseResources
> Task :app:createReleaseCompatibleScreenManifests
> Task :app:extractDeepLinksRelease
> Task :cloud_firestore:extractDeepLinksRelease
> Task :cloud_firestore:processReleaseManifest
> Task :file_picker:extractDeepLinksRelease
> Task :file_picker:processReleaseManifest
> Task :firebase_auth:extractDeepLinksRelease
> Task :firebase_auth:processReleaseManifest
> Task :firebase_core:extractDeepLinksRelease
> Task :firebase_messaging:extractDeepLinksRelease
> Task :firebase_storage:extractDeepLinksRelease
> Task :flutter_plugin_android_lifecycle:extractDeepLinksRelease
> Task :flutter_sms:extractDeepLinksRelease
> Task :firebase_core:processReleaseManifest
> Task :flutter_user_agent:extractDeepLinksRelease
> Task :flutter_plugin_android_lifecycle:processReleaseManifest
> Task :google_sign_in:extractDeepLinksRelease
> Task :firebase_messaging:processReleaseManifest
> Task :image_picker:extractDeepLinksRelease
> Task :url_launcher:extractDeepLinksRelease
> Task :app:mergeReleaseResources
> Task :google_sign_in:processReleaseManifest
> Task :url_launcher:processReleaseManifest
> Task :flutter_sms:processReleaseManifest
> Task :flutter_user_agent:processReleaseManifest
> Task :firebase_storage:processReleaseManifest
> Task :image_picker:processReleaseManifest
> Task :app:processReleaseManifest
> Task :cloud_firestore:parseReleaseLocalResources
> Task :firebase_core:parseReleaseLocalResources
> Task :file_picker:parseReleaseLocalResources
> Task :flutter_plugin_android_lifecycle:parseReleaseLocalResources
> Task :firebase_auth:parseReleaseLocalResources
> Task :firebase_storage:parseReleaseLocalResources
> Task :firebase_messaging:parseReleaseLocalResources
> Task :flutter_sms:parseReleaseLocalResources
> Task :flutter_user_agent:parseReleaseLocalResources
> Task :url_launcher:parseReleaseLocalResources
> Task :flutter_plugin_android_lifecycle:generateReleaseRFile
> Task :firebase_core:generateReleaseRFile
> Task :file_picker:generateReleaseRFile
> Task :flutter_user_agent:generateReleaseRFile
> Task :firebase_auth:generateReleaseRFile
> Task :cloud_firestore:generateReleaseRFile
> Task :url_launcher:generateReleaseRFile
> Task :google_sign_in:parseReleaseLocalResources
> Task :firebase_messaging:generateReleaseRFile
> Task :firebase_storage:generateReleaseRFile
> Task :flutter_sms:generateReleaseRFile
> Task :image_picker:parseReleaseLocalResources
> Task :cloud_firestore:generateReleaseBuildConfig
> Task :image_picker:generateReleaseRFile
> Task :google_sign_in:generateReleaseRFile
> Task :app:processReleaseResources
> Task :firebase_core:generateReleaseBuildConfig
> Task :file_picker:generateReleaseBuildConfig
> Task :flutter_plugin_android_lifecycle:generateReleaseBuildConfig
> Task :firebase_auth:generateReleaseBuildConfig
> Task :firebase_messaging:generateReleaseBuildConfig
> Task :firebase_storage:generateReleaseBuildConfig
> Task :flutter_sms:generateReleaseBuildConfig
> Task :flutter_user_agent:generateReleaseBuildConfig
> Task :url_launcher:generateReleaseBuildConfig
> Task :google_sign_in:generateReleaseBuildConfig
> Task :image_picker:generateReleaseBuildConfig
> Task :app:prepareLintJar UP-TO-DATE
> Task :cloud_firestore:prepareLintJarForPublish UP-TO-DATE
> Task :file_picker:prepareLintJarForPublish UP-TO-DATE
> Task :firebase_auth:prepareLintJarForPublish UP-TO-DATE
> Task :firebase_core:prepareLintJarForPublish UP-TO-DATE
> Task :firebase_messaging:prepareLintJarForPublish UP-TO-DATE
> Task :firebase_storage:prepareLintJarForPublish UP-TO-DATE
> Task :flutter_plugin_android_lifecycle:prepareLintJarForPublish UP-TO-DATE
> Task :flutter_sms:prepareLintJarForPublish UP-TO-DATE
> Task :flutter_user_agent:prepareLintJarForPublish UP-TO-DATE
> Task :google_sign_in:prepareLintJarForPublish UP-TO-DATE
> Task :image_picker:prepareLintJarForPublish UP-TO-DATE
> Task :url_launcher:prepareLintJarForPublish UP-TO-DATE
> Task :flutter_plugin_android_lifecycle:javaPreCompileRelease
> Task :flutter_plugin_android_lifecycle:compileReleaseJavaWithJavac
> Task :url_launcher:javaPreCompileRelease
> Task :url_launcher:compileReleaseJavaWithJavac
> Task :flutter_user_agent:javaPreCompileRelease
> Task :flutter_user_agent:compileReleaseJavaWithJavac
Note: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_user_agent-1.2.2\android\src\main\java\io\jojodev\flutter\flutteruseragent\FlutterUserAgentPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :google_sign_in:javaPreCompileRelease
> Task :google_sign_in:compileReleaseJavaWithJavac
Note: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\google_sign_in-4.5.9\android\src\main\java\io\flutter\plugins\googlesignin\GoogleSignInPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :firebase_core:javaPreCompileRelease
> Task :firebase_core:compileReleaseJavaWithJavac
Note: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_core-0.5.3\android\src\main\java\io\flutter\plugins\firebase\core\FlutterFirebaseCorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :flutter_user_agent:bundleLibCompileRelease
> Task :url_launcher:bundleLibCompileRelease
> Task :flutter_sms:compileReleaseKotlin
w: Runtime JAR files in the classpath have the version 1.3, which is older than the API version 1.4. Consider using the runtime of version 1.4, or pass '-api-version 1.3' explicitly to restrict the available APIs to the runtime of version 1.3. You can also pass '-language-version 1.3' instead, which will restrict not only the APIs to the specified version, but also the language features
w: C:\Users\omerkalfa\.gradle\caches\transforms-2\files-2.1\992306bf712cadc30b69c9f705670a64\jetified-kotlin-stdlib-jdk7-1.3.50.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4
w: C:\Users\omerkalfa\.gradle\caches\transforms-2\files-2.1\b7e5a140d96cd6c9ef247f728639e073\jetified-kotlin-stdlib-1.3.50.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4
w: C:\Users\omerkalfa\.gradle\caches\transforms-2\files-2.1\eacb3212e6bcd2ffb5bee135749f60a3\jetified-kotlin-stdlib-common-1.3.50.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4
w: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_sms-2.1.1\android\src\main\kotlin\com\example\flutter_sms\FlutterSmsPlugin.kt: (8, 48): 'Registrar' is deprecated. Deprecated in Java
w: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_sms-2.1.1\android\src\main\kotlin\com\example\flutter_sms\FlutterSmsPlugin.kt: (16, 35): 'Registrar' is deprecated. Deprecated in Java
w: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_sms-2.1.1\android\src\main\kotlin\com\example\flutter_sms\FlutterSmsPlugin.kt: (24, 33): 'Registrar' is deprecated. Deprecated in Java
w: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_sms-2.1.1\android\src\main\kotlin\com\example\flutter_sms\FlutterSmsPlugin.kt: (67, 23): Parameter 'result' is never used
> Task :flutter_plugin_android_lifecycle:bundleLibCompileRelease
> Task :google_sign_in:bundleLibCompileRelease
> Task :flutter_sms:javaPreCompileRelease
> Task :flutter_sms:compileReleaseJavaWithJavac
> Task :firebase_core:bundleLibCompileRelease
> Task :flutter_sms:bundleLibCompileRelease
> Task :file_picker:javaPreCompileRelease
> Task :file_picker:compileReleaseJavaWithJavac
Note: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\file_picker-2.1.7\android\src\main\java\com\mr\flutter\plugin\filepicker\FilePickerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :firebase_storage:javaPreCompileRelease
> Task :firebase_storage:compileReleaseJavaWithJavac
C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_storage-5.2.0\android\src\main\java\io\flutter\plugins\firebase\storage\FlutterFirebaseStoragePlugin.java:38: warning: [deprecation] Registrar in PluginRegistry has been deprecated
public static void registerWith(PluginRegistry.Registrar registrar) {
^
1 warning
> Task :file_picker:bundleLibCompileRelease
> Task :cloud_firestore:javaPreCompileRelease
> Task :cloud_firestore:compileReleaseJavaWithJavac
Note: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\cloud_firestore-0.14.4\android\src\main\java\io\flutter\plugins\firebase\firestore\FlutterFirebaseFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :firebase_auth:javaPreCompileRelease
> Task :firebase_auth:compileReleaseJavaWithJavac
Note: C:\src\flutter\flutter\.pub-cache\hosted\pub.dartlang.org\firebase_auth-0.18.4+1\android\src\main\java\io\flutter\plugins\firebase\auth\FlutterFirebaseAuthPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :cloud_firestore:bundleLibCompileRelease
> Task :firebase_storage:bundleLibCompileRelease
> Task :firebase_messaging:javaPreCompileRelease
> Task :firebase_messaging:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :firebase_auth:bundleLibCompileRelease
> Task :image_picker:javaPreCompileRelease
> Task :image_picker:compileReleaseJavaWithJavac
> Task :firebase_messaging:bundleLibCompileRelease
> Task :image_picker:bundleLibCompileRelease
> Task :app:compileReleaseKotlin
> Task :app:javaPreCompileRelease
> Task :app:compileReleaseJavaWithJavac
> Task :app:compileReleaseSources
> Task :app:lintVitalRelease
> Task :firebase_core:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :firebase_core:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :firebase_auth:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :firebase_auth:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :cloud_firestore:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :cloud_firestore:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :url_launcher:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :url_launcher:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :firebase_messaging:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :firebase_messaging:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :flutter_plugin_android_lifecycle:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :flutter_plugin_android_lifecycle:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :image_picker:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :image_picker:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :flutter_user_agent:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :flutter_user_agent:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :flutter_sms:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :flutter_sms:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :firebase_storage:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :firebase_storage:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :google_sign_in:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :google_sign_in:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :file_picker:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :file_picker:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :app:checkReleaseDuplicateClasses
> Task :app:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :app:processReleaseJavaRes NO-SOURCE
> Task :cloud_firestore:processReleaseJavaRes NO-SOURCE
> Task :file_picker:processReleaseJavaRes NO-SOURCE
> Task :firebase_auth:processReleaseJavaRes NO-SOURCE
> Task :firebase_core:processReleaseJavaRes NO-SOURCE
> Task :firebase_messaging:processReleaseJavaRes NO-SOURCE
> Task :firebase_storage:processReleaseJavaRes NO-SOURCE
> Task :file_picker:bundleLibResRelease
> Task :flutter_plugin_android_lifecycle:processReleaseJavaRes NO-SOURCE
> Task :flutter_sms:processReleaseJavaRes NO-SOURCE
> Task :firebase_messaging:bundleLibResRelease
> Task :flutter_user_agent:processReleaseJavaRes NO-SOURCE
> Task :flutter_plugin_android_lifecycle:bundleLibResRelease
> Task :google_sign_in:processReleaseJavaRes NO-SOURCE
> Task :flutter_sms:bundleLibResRelease
> Task :image_picker:processReleaseJavaRes NO-SOURCE
> Task :flutter_user_agent:bundleLibResRelease
> Task :url_launcher:processReleaseJavaRes NO-SOURCE
> Task :google_sign_in:bundleLibResRelease
> Task :cloud_firestore:bundleLibResRelease
> Task :firebase_storage:bundleLibResRelease
> Task :cloud_firestore:bundleLibRuntimeRelease
> Task :firebase_auth:bundleLibRuntimeRelease
> Task :firebase_core:bundleLibResRelease
> Task :firebase_core:bundleLibRuntimeRelease
> Task :url_launcher:bundleLibResRelease
> Task :file_picker:bundleLibRuntimeRelease
> Task :flutter_plugin_android_lifecycle:bundleLibRuntimeRelease
> Task :flutter_sms:bundleLibRuntimeRelease
> Task :flutter_user_agent:bundleLibRuntimeRelease
> Task :firebase_messaging:bundleLibRuntimeRelease
> Task :firebase_storage:bundleLibRuntimeRelease
> Task :image_picker:bundleLibRuntimeRelease
> Task :google_sign_in:bundleLibRuntimeRelease
> Task :firebase_auth:bundleLibResRelease
> Task :image_picker:bundleLibResRelease
> Task :url_launcher:bundleLibRuntimeRelease
> Task :app:mergeReleaseJniLibFolders
> Task :cloud_firestore:mergeReleaseJniLibFolders
> Task :file_picker:mergeReleaseJniLibFolders
> Task :cloud_firestore:mergeReleaseNativeLibs
> Task :cloud_firestore:stripReleaseDebugSymbols
> Task :cloud_firestore:copyReleaseJniLibsProjectOnly
> Task :firebase_auth:mergeReleaseJniLibFolders
> Task :file_picker:mergeReleaseNativeLibs
> Task :file_picker:stripReleaseDebugSymbols
> Task :file_picker:copyReleaseJniLibsProjectOnly
> Task :firebase_core:mergeReleaseJniLibFolders
> Task :firebase_messaging:mergeReleaseJniLibFolders
> Task :firebase_core:mergeReleaseNativeLibs
> Task :firebase_core:stripReleaseDebugSymbols
> Task :firebase_core:copyReleaseJniLibsProjectOnly
> Task :firebase_storage:mergeReleaseJniLibFolders
> Task :firebase_auth:mergeReleaseNativeLibs
> Task :firebase_auth:stripReleaseDebugSymbols
> Task :firebase_auth:copyReleaseJniLibsProjectOnly
> Task :flutter_plugin_android_lifecycle:mergeReleaseJniLibFolders
> Task :flutter_sms:mergeReleaseJniLibFolders
> Task :flutter_plugin_android_lifecycle:mergeReleaseNativeLibs
> Task :flutter_plugin_android_lifecycle:stripReleaseDebugSymbols
> Task :flutter_plugin_android_lifecycle:copyReleaseJniLibsProjectOnly
> Task :flutter_user_agent:mergeReleaseJniLibFolders
> Task :flutter_sms:mergeReleaseNativeLibs
> Task :flutter_sms:stripReleaseDebugSymbols
> Task :flutter_sms:copyReleaseJniLibsProjectOnly
> Task :google_sign_in:mergeReleaseJniLibFolders
> Task :flutter_user_agent:mergeReleaseNativeLibs
> Task :flutter_user_agent:stripReleaseDebugSymbols
> Task :flutter_user_agent:copyReleaseJniLibsProjectOnly
> Task :image_picker:mergeReleaseJniLibFolders
> Task :google_sign_in:mergeReleaseNativeLibs
> Task :google_sign_in:stripReleaseDebugSymbols
> Task :google_sign_in:copyReleaseJniLibsProjectOnly
> Task :url_launcher:mergeReleaseJniLibFolders
> Task :image_picker:mergeReleaseNativeLibs
> Task :image_picker:stripReleaseDebugSymbols
> Task :image_picker:copyReleaseJniLibsProjectOnly
> Task :app:validateSigningRelease
> Task :firebase_messaging:mergeReleaseNativeLibs
> Task :firebase_messaging:stripReleaseDebugSymbols
> Task :firebase_messaging:copyReleaseJniLibsProjectOnly
> Task :url_launcher:mergeReleaseNativeLibs
> Task :url_launcher:stripReleaseDebugSymbols
> Task :url_launcher:copyReleaseJniLibsProjectOnly
> Task :firebase_storage:mergeReleaseNativeLibs
> Task :firebase_storage:stripReleaseDebugSymbols
> Task :firebase_storage:copyReleaseJniLibsProjectOnly
> Task :app:mergeReleaseJavaResource
> Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing class: com.google.android.play.core.splitcompat.SplitCompatApplication","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListener","sources":[{}],"tool":"R8"}
> Task :app:mergeReleaseNativeLibs
> Task :app:shrinkReleaseRes
> Task :app:stripReleaseDebugSymbols
WARNING: Compatible side by side NDK version was not found. Default is 20.0.5594570.
Compatible side by side NDK version was not found. Default is 20.0.5594570.
Unable to strip the following libraries, packaging them as they are: libapp.so, libapp.so, libapp.so, libflutter.so, libflutter.so, libflutter.so.
> Task :app:packageRelease
> Task :app:assembleRelease
BU�LD SUCCESSFUL in 7m 38s
298 actionable tasks: 259 executed, 39 up-to-date
at the bottom i got these warnings:
> Task :app:minifyReleaseWithR8
AGPBI: {"kind":"warning","text":"Missing class: com.google.android.play.core.splitcompat.SplitCompatApplication","sources":[{}],"tool":"R8"}
AGPBI: {"kind":"warning","text":"Missing class: com.google.android.play.core.splitinstall.SplitInstallStateUpdatedListener","sources":[{}],"tool":"R8"}
> Task :app:mergeReleaseNativeLibs
> Task :app:shrinkReleaseRes
> Task :app:stripReleaseDebugSymbols
WARNING: Compatible side by side NDK version was not found. Default is 20.0.5594570.
Compatible side by side NDK version was not found. Default is 20.0.5594570.
Unable to strip the following libraries, packaging them as they are: libapp.so, libapp.so, libapp.so, libflutter.so, libflutter.so, libflutter.so.
APRIL 19TH UPDATE
my problem still continues. can that be about developer account? i get some warnings Google Cloud and Platforms APIs and SERVICES project page. i am adding some screenshots of my projects page. i am really need help about this one.
i hope there is someone who help me here.
The error is very clear and specific, it cannot be anything else. Double check the google services json used for the APK build, and if you built a release or debug APK, You need to add both SHA keys, 256 and SHA1, for debug and for release.
Enable the sign-in method phone in the authentication.
Add debug and release SHA-1 and SHA256 in the firebase settings.
Download google-services.json and add it to the project. Search your package name in the json file it should be there, if it's not it means you are adding wrong google-services.json file .
Run the app on the device(real device not emulator)
For more info check this answer

error while running `detox build -c android.emu.debug` Task :app:compileDebugJavaWithJavac FAILED in react native

While following the Detox [installation tutorial for android][1], I had the following error running the detox build -c android.emu.debug
❯ detox build -c android.emu.debug detox[23052] INFO: [build.js] cd android && ./gradlew assembleDebug assembleAndroidTest
-DtestBuildType=debug && cd ..
Task :app:generatePackageList
Task :app:preBuild
Task :react-native-gesture-handler:preBuild UP-TO-DATE
Task :react-native-gesture-handler:preDebugBuild UP-TO-DATE
Task :react-native-gesture-handler:checkDebugManifest UP-TO-DATE
Task :react-native-gesture-handler:processDebugManifest UP-TO-DATE
Task :react-native-reanimated:preBuild UP-TO-DATE
Task :react-native-reanimated:preDebugBuild UP-TO-DATE
Task :react-native-reanimated:checkDebugManifest UP-TO-DATE
Task :react-native-reanimated:processDebugManifest UP-TO-DATE
Task :react-native-screens:preBuild UP-TO-DATE
Task :react-native-screens:preDebugBuild UP-TO-DATE
Task :react-native-screens:checkDebugManifest UP-TO-DATE
Task :react-native-screens:processDebugManifest UP-TO-DATE
Task :react-native-vector-icons:preBuild UP-TO-DATE
Task :react-native-vector-icons:preDebugBuild UP-TO-DATE
Task :react-native-vector-icons:checkDebugManifest UP-TO-DATE
Task :react-native-vector-icons:processDebugManifest UP-TO-DATE
Task :react-native-webview:preBuild UP-TO-DATE
Task :react-native-webview:preDebugBuild UP-TO-DATE
Task :react-native-webview:checkDebugManifest UP-TO-DATE
Task :react-native-webview:processDebugManifest UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :react-native-screens:compileDebugAidl NO-SOURCE
Task :react-native-vector-icons:compileDebugAidl NO-SOURCE
Task :react-native-gesture-handler:compileDebugAidl NO-SOURCE
Task :react-native-reanimated:compileDebugAidl NO-SOURCE
Task :react-native-webview:compileDebugAidl NO-SOURCE
Task :app:compileDebugAidl NO-SOURCE
Task :react-native-gesture-handler:packageDebugRenderscript NO-SOURCE
Task :react-native-reanimated:packageDebugRenderscript NO-SOURCE
Task :react-native-screens:packageDebugRenderscript NO-SOURCE
Task :react-native-vector-icons:packageDebugRenderscript NO-SOURCE
Task :react-native-webview:packageDebugRenderscript NO-SOURCE
Task :app:compileDebugRenderscript NO-SOURCE
Task :app:checkDebugManifest UP-TO-DATE
Task :app:generateDebugBuildConfig UP-TO-DATE
Task :app:bundleDebugJsAndAssets SKIPPED
Task :app:prepareLintJar UP-TO-DATE
Task :app:generateDebugSources UP-TO-DATE
Task :react-native-gesture-handler:generateDebugBuildConfig UP-TO-DATE
Task :react-native-gesture-handler:compileDebugRenderscript NO-SOURCE
Task :react-native-gesture-handler:generateDebugResValues UP-TO-DATE
Task :react-native-gesture-handler:generateDebugResources UP-TO-DATE
Task :react-native-gesture-handler:prepareLintJar UP-TO-DATE
Task :react-native-gesture-handler:generateDebugSources UP-TO-DATE
Task :react-native-gesture-handler:javaPreCompileDebug UP-TO-DATE
Task :react-native-gesture-handler:packageDebugResources UP-TO-DATE
Task :react-native-gesture-handler:generateDebugRFile UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.java:4:
error: package com.facebook.react.module.annotations does not exist
import com.facebook.react.module.annotations.ReactModule;
^ /home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.java:17:
error: cannot find symbol #ReactModule(name =
RNGestureHandlerRootViewManager.REACT_CLASS) ^ symbol: class
ReactModule
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:16:
error: package com.facebook.react.module.annotations does not exist
import com.facebook.react.module.annotations.ReactModule;
^ /home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:19:
error: cannot find symbol import com.facebook.react.uimanager.UIBlock;
^ symbol: class UIBlock location: package com.facebook.react.uimanager
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:40:
error: cannot find symbol
#ReactModule(name=RNGestureHandlerModule.MODULE_NAME) ^ symbol:
class ReactModule
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java:218:
error: cannot find symbol #ReactProp(name = ViewProps.BORDER_RADIUS)
^ symbol: variable BORDER_RADIUS location: class ViewProps
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:41:
error: method init in class Event cannot be applied to given types;
super.init(handler.getView().getId());
^ required: int,long found: int reason: actual and formal argument lists differ in length where T is a type-variable:
T extends Event declared in class Event /home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.java:45:
error: cannot find symbol
return parent.getChildAt(((ReactViewGroup) parent).getZIndexMappedChildIndex(index));
^ symbol: method getZIndexMappedChildIndex(int) location: class ReactViewGroup
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.java:54:
error: cannot find symbol
String overflow = ((ReactViewGroup) view).getOverflow();
^ symbol: method getOverflow() location: class ReactViewGroup
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:574:
error: cannot find symbol
final int rootViewTag = uiManager.resolveRootTagFromReactTag(ancestorViewTag);
^ symbol: method resolveRootTagFromReactTag(int) location: variable uiManager of type
UIManagerModule
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:582:
error: cannot find symbol
if (root.getRootView().getRootViewTag() == rootViewTag) {
^ symbol: method getRootViewTag() location: class ReactRootView
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:598:
error: cannot find symbol
uiManager.addUIBlock(new UIBlock() {
^ symbol: class UIBlock location: class RNGestureHandlerModule
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:634:
error: cannot find symbol
int rootViewTag = uiManager.resolveRootTagFromReactTag(viewTag);
^ symbol: method resolveRootTagFromReactTag(int) location: variable uiManager of type
UIManagerModule
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.java:641:
error: cannot find symbol
if (root.getRootView().getRootViewTag() == rootViewTag) {
^ symbol: method getRootViewTag() location: class ReactRootView
/home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerPackage.java:18:
error: RNGestureHandlerPackage is not abstract and does not override
abstract method createJSModules() in ReactPackage public class
RNGestureHandlerPackage implements ReactPackage {
^ /home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.java:45:
error: method init in class Event cannot be applied to given types;
super.init(handler.getView().getId());
^ required: int,long found: int reason: actual and formal argument lists differ in length where T is a type-variable:
T extends Event declared in class Event Note: /home/rogerd/dev/app_cachacagestor/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java
uses or overrides a deprecated API. Note: Recompile with
-Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for
details. 16 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-gesture-handler:compileDebugJavaWithJavac'.
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
Deprecated Gradle features were used in this build, making it
incompatible with Gradle 6.0. Use '--warning-mode all' to show the
individual deprecation warnings. See
https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 5s 22 actionable tasks: 2 executed, 20 up-to-date
detox[23052] ERROR: [cli.js] Error: Command failed: cd android &&
./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug &&
cd ..
"react": "16.8.6",
"react-native": "0.60.5",
"detox": "^14.3.2",
"mocha": "^6.2.0",
Does anyone know how to solve ?
I solved it by changing the order of the maven repositories in android/build.gradle. My allprojects looks like this:
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
maven {
// All of Detox' artifacts are provided via the npm module
url "$rootDir/../node_modules/detox/Detox-android"
}
maven { url 'https://www.jitpack.io' }
}
}
Thanks to gypsicoder
https://github.com/software-mansion/react-native-gesture-handler/issues/1002

cant compile app on phone gap - new error with depriciation

I get the below errors in phonegap build. this is even when building an old version of the app that used to work. not understanding the error, any help??
Build Date: 2018-05-25 16:11:42 +0000
PLUGIN OUTPUT
Fetching plugin "cordova-plugin-inappbrowser" via npm
Installing "cordova-plugin-inappbrowser" at "3.0.0" for android
Fetching plugin "onesignal-cordova-plugin#^2.3.1" via npm
Installing "onesignal-cordova-plugin" at "2.4.1" for android
Subproject Path: CordovaLib
Fetching plugin "cordova-plugin-whitelist" via npm
Installing "cordova-plugin-whitelist" at "1.3.3" for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do not need this plugin since the whitelist will be built in.
Fetching plugin "cordova-plugin-geolocation#^2.4.1" via npm
Installing "cordova-plugin-geolocation" at "2.4.3" for android
Fetching plugin "cordova-plugin-compat#^1.0.0" via npm
Installing "cordova-plugin-compat" at "1.2.0" for android
COMPILE OUTPUT
:wrapper
BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_3icce6xsgr7rsvstratajpe9b.run(/project/build.gradle:138)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:preDebugBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:incrementalDebugJavaCompilationSafeguard
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareAndroidArchCoreRuntime110Library
:prepareAndroidArchLifecycleLivedataCore110Library
:prepareAndroidArchLifecycleRuntime110Library
:prepareAndroidArchLifecycleViewmodel110Library
:prepareComAndroidSupportCustomtabs2711Library
:prepareComAndroidSupportSupportCompat2711Library
:prepareComAndroidSupportSupportCoreUi2711Library
:prepareComAndroidSupportSupportCoreUtils2711Library
:prepareComAndroidSupportSupportFragment2711Library
:prepareComAndroidSupportSupportMediaCompat2711Library
:prepareComAndroidSupportSupportV42711Library
:prepareComGoogleAndroidGmsPlayServicesBase1201Library
:prepareComGoogleAndroidGmsPlayServicesBaseLicense1201Library
:prepareComGoogleAndroidGmsPlayServicesBasement1201Library
:prepareComGoogleAndroidGmsPlayServicesBasementLicense1201Library
:prepareComGoogleAndroidGmsPlayServicesLocation1201Library
:prepareComGoogleAndroidGmsPlayServicesLocationLicense1201Library
:prepareComGoogleAndroidGmsPlayServicesTasks1201Library
:prepareComGoogleAndroidGmsPlayServicesTasksLicense1201Library
:prepareComGoogleFirebaseFirebaseCommon1201Library
:prepareComGoogleFirebaseFirebaseCommonLicense1201Library
:prepareComGoogleFirebaseFirebaseIid1201Library
:prepareComGoogleFirebaseFirebaseIidLicense1201Library
:prepareComGoogleFirebaseFirebaseMessaging1201Library
:prepareComGoogleFirebaseFirebaseMessagingLicense1201Library
:prepareComOnesignalOneSignal391Library
:prepareOrgApacheCordovaCordovaLib623ReleaseLibrary
:prepareReleaseDependencies
:compileReleaseAidl
:compileReleaseRenderscript
:generateReleaseBuildConfig
:generateReleaseResValues
:generateReleaseResources
:mergeReleaseResources
:processReleaseManifest
:processReleaseResourcesERROR: In FontFamilyFont, unable to find attribute android:font
ERROR: In FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In FontFamilyFont, unable to find attribute android:fontWeight
FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.249 secs
Error: /project/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
ERROR: In FontFamilyFont, unable to find attribute android:font
ERROR: In FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In FontFamilyFont, unable to find attribute android:fontWeight
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processReleaseResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
In your platforms/android folder that contains the build.gradle file, create another file called build-extras.gradle and put the following inside of it:
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
I had the same issue and this fixed it for me. I also had to update AndroidManifest.xml to point to the correct icon folder because it changed that config variable to the mipmap folders instead of the drawable folders.
Set your compileSdkVersion to 23 in your module's build.gradle file and see

No resource found that matches the given name - Error while using CollapsingToolBar

I'm new to Android and using a CollapsingToolBar. When I set the image in toolbar, it gives me the below error. I was getting an error which says "Cruncher cruncher error" but resolved it by creating different for mdpi and hdpi but then this error occurred.
AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027src\u0027 with value \u0027#mipmap/wintertiger\u0027).","sources":[{"file":"E:\\Android\\Ewaid\\app\\src\\main\\res\\layout\\activity_edit_user_profile.xml","position":{"startLine":36,"startColumn":29,"startOffset":1597,"endColumn":48,"endOffset":1616}}],"original":""}
My layout file:
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="#+id/coordinatorLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:contentScrim="?attr/colorPrimary"
app:expandedTitleMarginEnd="64dp"
app:expandedTitleMarginStart="48dp"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="#+id/appBarLayout">
<android.support.design.widget.CollapsingToolbarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="#+id/collapsingToolBar"
app:contentScrim="?attr/colorPrimary">
<include
android:id="#+id/app_bar"
layout="#layout/app_bar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:layout_scrollFlags="scroll|enterAlways"
app:layout_collapseMode="pin"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="fdgfhhg"
android:minHeight="100dp"
android:scaleType="centerCrop"
android:src="#mipmap/wintertiger"
app:layout_collapseMode="parallax"
app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed"
android:id="#+id/userImage"/>
</android.support.design.widget.CollapsingToolbarLayout>
</android.support.design.widget.AppBarLayout>
My resource is mipmap/wintertiger.png
Any help will be appreciated.
My console for full logs:
Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources]
Configuration on demand is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72300Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2300Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42300Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
AAPT out(1086801821) : No Delegate set : lost message:Done
AAPT out(1772881340) : No Delegate set : lost message:Done
AAPT out(1623148880) : No Delegate set : lost message:Done
AAPT out(256342006) : No Delegate set : lost message:Done
AAPT out(256342006) : No Delegate set : lost message:Done
AAPT out(1086801821) : No Delegate set : lost message:Done
AAPT err(1772881340): libpng error: Not a PNG file
AAPT err(1086801821): libpng error: Not a PNG file
AAPT err(1086801821): libpng error: Not a PNG file
AAPT err(256342006): libpng error: Not a PNG file
AAPT err(256342006): libpng error: Not a PNG file
AAPT err(1623148880): libpng error: Not a PNG file
:app:processDebugManifest
:app:processDebugResources
AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027src\u0027 with value \u0027#mipmap/wintertiger\u0027).","sources":[{"file":"E:\\Android\\Ewaid\\app\\src\\main\\res\\layout\\activity_edit_user_profile.xml","position":{"startLine":36,"startColumn":29,"startOffset":1597,"endColumn":48,"endOffset":1616}}],"original":""}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\pegasus\AppData\Local\Android\sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 10.483 secs

Categories

Resources