Category "android"

Retrofit2 not working when enabling Proguard

I have an application which uses retrofit to fetch logo form an API. When i don't obfuscate and shrink my code, everything works fine. But when i enable it, th

Could not connect to React Native development server on Android

When I run react-native run-android, it gives me the following error: Could not connect to development server Package server is running and I can access

D8: Cannot fit requested classes in a single dex file

I am trying to add the below dependencies: firebase_auth: ^0.14.0+5 google_sign_in: ^4.0.7 cloud_firestore: ^0.12.9+5 fluttertoast: ^3.1.3 image_pick

RuntimeException: API key not found. Check that geo.API_KEY is in the AndroidManifest.xml

I am attempting to compile a simple map display on my my phone, but the app keeps closing. It seems that all my ducks are in a row, but I'm just stumped. This

After upgrading gradle to 4.0.0, retrofit do not receive response anymore

After upgrading from gradle 3.6.3 to 4.0.0, retrofit only able to send request but not able to receive response. From the logging I can only see: I/okhttp.OkHtt

On React-native, on Android, canOpenURL fails & OpenURL throw an error: Could not open URL

On a React-Native mobile app Linking.canOpenURL and Linking.openURL fail if the URL refers to an app screen, while it works when referring to an HTTPS URL. I su

Getting 403 Forbidden error when trying to load image from Firebase Storage

I'm using firebase storage to store and load images for users on my android app. All users must be authenticated before using it. Occasionally, some user profil

How do you implement LintFix to add missing annotation to class definition in Android

I am investigation custom Lint Rules development in my current Android Application. My detector finds all Activities in my project that are not annotated with a

What exactly is the client secret for Google OAuth2?

In Google's OIDC guide, section Exchange code for access token and ID token states that I must provide a client_secret. If I select the relevant client ID from

Could not determine the dependencies of task ':app:preDebugBuild'. In React Native

What went wrong: Could not determine the dependencies of task ':app:preDebugBuild'. Could not resolve all task dependencies for configuration ':app:debugRuntim

For loop not stopping and random generated number not being saved (number guessing game)

I'm doing a number guessing game in an Android app. You have three tries to guess the number. If you run out of trials, then you loose. I added a for loop so th

How can I embed Ffmpeg extension into Exoplayer under windows?

For some reasons I have to work under windows 10 OS with Android-Studio as IDE. My problem is that, exoplayer uses software and hardware decoders of Android-TV

Unit test the new Kotlin coroutine StateFlow

Recently, the class StateFlow was introduced as part of Kotlin coroutines. I'm currently trying it and encountered an issue while trying to unit test my ViewMod

Host name may not be empty

After upgrading my Android Studio, I got this error whenever I wanted to generate a signed Apk (without any detail of where the problem is). There was no proble

Unit test the new Kotlin coroutine StateFlow

Recently, the class StateFlow was introduced as part of Kotlin coroutines. I'm currently trying it and encountered an issue while trying to unit test my ViewMod

Android: no start destination defined via app:startDestination for x.x.x:id/nav_graph

In the nav_graph even though I have used, I get warning project level gradle: // Top-level build file where you can add configuration options common to all

PEM error when Im trying to deploy an app to Google Play through Azure DevOps

When im trying to deploy my app bundle using the Google Play - Release Bundle task in Azure DevOps, I get the following error: ##[section]Starting: Release D:\

Android ExoPlayer delay when playing audio

In my app, I'm trying to use ExoPlayer to play audio and video together at the same time using MergingMediaSource. The problem is that it buffers for several mi

Moshi: Parse single object or list of objects (kotlin)

Problem How to parse either a single Warning object or a list of Warning objects (List<Warning>) from an API using Moshi? The response as a single warning

Maintaining a full screen when an AlertDialog is displayed

Based on the following code snippet, I was wondering how to hide the soft keys (status and navigation bars) and maintain immersive mode throughout the whole app