Category "android"

Gradle - Error Could not find method implementation() for arguments [com.android.support:appcompat-v7:26.0.0]

I am trying to open existing android project in android studio and it gradle cannot build the app without the error Error android studio keeps on throwing Err

ScrollView too long therefore produce white borders

I'm still working on my android application and I still struggle with XML ans scroll views. I want to display an AlertDialog which contains: A JPEG image a the

Software keyboard overlaps content of jetpack compose view

Suppose I have some activity with a jetpack-compose content class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) {

How do we emulate virtual CAN devices from host to Android emulator?

I have virtual CAN (vcan0, vcan1) in my host Linux. I want to make them available in an Android Virtual Device (AVD). I am creating the AVD using AVD manager in

How to configure gradle to use logback-classic ONLY for unit tests in Android?

I have an Android app thich uses slf4j + logback. Gradle file looks like this: ... compile('com.github.tony19:logback-android-core:1.1.1-6') { exclude grou

Unable to parse template "Class"

I am trying to create class in android but i got this error Unable to parse template "Class" Error message: This template did not produce a Java class or

The upload key is the same as the deployment key. For security reasons we need them to be different. Please use a different upload certificate

The upload key is the same as the deployment key. For security reasons we need them to be different. Please use a different upload certificate. I am getting thi

Provided camera selector unable to resolve a camera for the given use case

I use camera in compose to take picture. Code for camera preview^ @Composable fun CameraPreview( modifier: Modifier = Modifier, scaleType: PreviewView.S

How to get index from Column, Row

I made a customGirdView like below, everything as I expected, but I want to make an event when I click an item, I cannot get the index of each item, it always t

React Native Android build duplicate error

I have a problem when bundling my android app with Android Studio (with react native). It shows me the following error: [string/CodePushDeploymentKey] /Users/{u

How can I convert Google Maps plus codes to Lng & Lat coordinates

I'm working on a project and I'm using some old google maps stuff. It requires longitude and latitude gps coordinates to get the location of a hospital for exam

How to make multiple constructors in Kotlin?

I want to use library which is in Java and it has alot of errors so I'm trying to change it to Kotlin. And AndroidStudio is not converting Java to Kotlin proper

Remove/revoke GitHub OAuth 'access_token'

I am using this GitHub's API to generate an access token for the user (mobile app), using this tutorial: https://developer.github.com/apps/building-oauth-apps/

How to set android camera2 preview and capture size?

I am using a SurfaceView to show the preview I capture. I want to use width=1080,height=1920 for the preview. Where can I set the size of the preview? I google

2 files found with path 'core.properties' from inputs:

I'm trying to upgrade a project to android 31 and latest Gradle version 7.3.0-alpha03 but, I'm getting some errors this is my stacktrace > Task :app:mergeSta

How to hide bottom nav bar in fragment

I have bottom nav bar define in the Main activity. I have three fragments linked with BottomNavigation bar in fragments I have recycler view so I want to hide B

Why is my smallIcon for Notifications always greyed out?

I tried making the small icon exactly 16x16, gray-scaled, nothing but gray and white (the gray color being hex value 616161), to create a silhouette of my appli

App crash when It makes API call using Retrofit on Android 12 API 32

Can anybody help me please. I already have added FLAG_IMMUTABLE flag to all pending intents for supporting Android 12, but when try to call any API using retrof

App crash when It makes API call using Retrofit on Android 12 API 32

Can anybody help me please. I already have added FLAG_IMMUTABLE flag to all pending intents for supporting Android 12, but when try to call any API using retrof

How to preview an image and only saving it if the user accepts it using cameraX

I use cameraX api for taking a picture and save an image as a file to the internal memory. When the callback for taking a picture has succeeded, I update the ui