Android Work Manager: "Could not instantiate Worker"

I've followed the Android Developer's tutorial on using the Worker Manager structure to run my code in background but anytime I try to enqueue my worker it doesn't run and I get the following...

Unable to get provider androidx.core.content.FileProvider ClassNotFoundException when trying to build an Android Plugin for Unity

I am trying to build an android plugin for unity3d that simply share a screenshot to another app via the FileProvider. I migrated my project to androidx. I have used...

java.lang.IllegalStateException: SimpleTypeImpl should not be created for error type

Have been facing this error after migrating to AndroidX. java.lang.IllegalStateException: SimpleTypeImpl should not be created for error type: ErrorScope{Error scope for class <ERROR CLASS> with...

Method doWork() not calling with WorkManager

I need to upload file from device to my app. I use WorkManager to do it in background. After updating library from android.arch.work:work-runtime:1.0.0-alpha04 to androidx.work:work-runtime:2.0.0...

Cause: androidx.navigation.safeargs can only be used with an androidx project

I am facing issue with navigation component called safeargs. I have used classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.0.0' in build gradle. While applying plugin...

androidX jetifier - Is there a way to ignore jetifying a .JAR?

Trying to update my app to androidX dependencies. Followed instructions here, and compilation failed. The error came from JetifyTransform task failing to process a certain .JAR dependency (FYI -...

Check if devices has biometric enabled with androidx biometric prompt

In Android BiometricPrompt prompt has replaced the deprecated FingerprintManager. FingerPrintManager has two functions hasEnrolledFingerprints() and isHardwareDetected() to check if the device...

How to fix flutter AndroidX incompatibility?

I just import webview_flutter plugin and found that the plugin has incompatible with my flutter environment. Then using Android Studio I migrate my AndroidX environment with "Migrate to AndroidX"...

How to load Image from drawable in Jetpack compose?

I have tried below code but it reflects nothing in the UI, I'm missing anything here? class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { ...

Unable to instantiate fragment com.swmansion.rnscreens.Screen

I have been developing an app for android and ios using React Native 0.60.4, and just recently I discovered that putting the app in split-screen or freeform mode (from being the only app on the...

in androidx.fragment.app.Fragment,setUserVisibleHint()is Deprecated,and not executed,why?

@Override public void setUserVisibleHint(boolean isVisibleToUser) { super.setUserVisibleHint(isVisibleToUser); if (getUserVisibleHint()) { isVisible = true; onVisible(); ...

Finished with error: Gradle task assembleRelease failed with exit code 1

When I try to build a release version of my flutter app this error occurs. I now that there're many similiar questions on StackOverflow, but I've tried a lot of things to solve it, and none of...

Android BiometricPrompt on AuthenicationSucceeded does not work

Android BiometricPrompt has completed fingerprint recognition, but onAuthenicationSucceeded does not work. And I used androidx Example: Log.i("finger", "onAuthenticationSucceeded") is not...

Flutter error: Execution failed for task ':app:compileDebugJavaWithJavac'

I try run on android and return this error. I Aredy tried: gradle.properties: android.useAndroidX=true android.enableJetifier=true build.gradle: testInstrumentationRunner...

ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not download twitter.aar (com.twitter.sdk.android:twitter:3.1.0)

Someone please help me to fix this issue. Tried all possible solutions provided in Stack Overflow and other blogs. Errors: ERROR: Unable to resolve dependency for...

Execution failed for task ':app:mergeDexDebug'. Firestore | Flutter

Trying to use Firestore in my project. My project is a brand new one, but having problems running the app on my device without getting an error: Execution failed for task ':app:mergeDexDebug'. My...

Execution failed for task ':app:minifyReleaseWithR8'.java.lang.NullPointerException (no error message)

when id update android studio to 3.6 android gradle tools to 3.6.0 ,there is a problem.when I generate sign apk,I got an exception,it is like this Execution failed for task...

stuck at starting intent main activity react native app

Trying to run the react native app on mobile device connected using react-native run-android. The app build was successful but the app crash on opening and on the command prompt it stucks on...

Proper usage of navigation component with view pager2 and nested navigation

I am trying to build the following view structure/ navigation using ViewPager2 + FragmentStateAdapter + navigation component. Preconditions: Single activity architecture, with one navigation...

First React Native App: Task :app:processDebugMainManifest FAILED

Problem I have followed the instructions as specified in https://reactnative.dev/docs/environment-setup, except for choclatey as I already have node etc. But I cannot build my app to reach the...

Kivy apk built by buildozer crashes soon after displaying presplash screen

I am new to Kivy and using buildozer. However, I've followed the instructions from buildozer.readthedocs and run "buildozer -v android debug deploy run logcat > my_log.txt" as best as I can, yet,...

Cannot resolve some classes in xml file and get red tag like TextView, FrameLayout and all tags that isn't androidx

i did clear project and rebuild, i did invalidate cache and restart, i did remove .idea folder and all of these things did't work for me.

Flutter: Execution failed for task ':app:checkDebugAarMetadata'. Could not resolve all files for configuration ':app:debugRuntimeClasspath'

I had an app that was working fine, but after updating to the latest version of flutter which is 2.8.1 it started showing errors regarding gradle files. The error is: FAILURE: Build failed with an...

After upgraded to androidX Zip file '...' already contains entry 'AndroidManifest.xml', cannot overwrite Error while build

I'm new in Android development and I've been recently assigned to an android project, which was not updated for more than a year. I got the below error when I try to build. This project was made...

org.gradle.api.UnknownDomainObjectException: KotlinJvmAndroidCompilation with name 'debug' not found

I have a java Android project and I am trying to include Kotlin/Convert some of the java classes to Kotlin. Project's build.gradle: Here I have introduced a variable for otlin version 1.6.10 and...

Angular v13 Jest with nx test - SyntaxError: Cannot use import statement outside a module at Runtime.createScriptFromCode

I tried to follow every comment with a possible solution here to the letter. I relied on an example project on github as well which works perfectly. This also started to happen to me after...

Bintray 502 bad gateway in android Studio

I'm using maven { url "http://dl.bintray.com/populov/maven" } in my project-level build.gradle file. Since bintray is shutdown, what can be the replacement of this repo? Could not resolve...

jcenter.bintray.com is down Error: 502 Bad Gateway

When trying to build my project I am getting the following error: > Could not GET > 'https://jcenter.bintray.com/androidx/lifecycle/lifecycle-common/maven-metadata.xml'. > Received status code 502...

Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

I am trying to build my react-native project for android and getting the following error on Windows but its working on Mac. $ react-native run-android info Running jetifier to migrate libraries to...

Gradle build not working for React Native project after updating Gradle version and Android Studio

I'd looked through similar questions on here but I haven't found any that worked for me so far. Problem I recently updated Android studio to the version below: Android Studio Arctic Fox | 2020.3.1...