Category "android-studio"

Implementing search bar and getting 'java.lang.Object[] java.util.Collection.toArray()' on a null object reference error

I am new to android studio and I have been trying to implement a search bar onto my app and I've come across a building error. It install's fine but when I try

Out of memory error: Java heap memory on Android Studio

How do I fix java.lang.OutOfMemoryError: Java heap space when compiling my Android project? I get this after I upgraded to version 1 of Android Studio. But, I d

How do I return function value in lifecycle-aware coroutine scope in Android?

fun returnValue(): Int { viewModelScope.launch { return 1 // Something like this } } I want to return some value in a viewModelScope like the

continue jacoco code coverage report after fail test case

Code coverage report not generated when Test case failed in android studio using Jacoco plugin.How to skip failed test case and generate code coverage report.

Flutter doctor error - Android sdkmanager tool not found. Windows

I have been going round in circles with this issue, there are so many that people have issues similar to mine, but not one of them is the same. I am trying to g

Android studio layout editor. Waiting for build to finish

Android studio layout preview is stuck in waiting for build to finish even though there is no build happening. I have invalidate and restarted android studio. I

FragmentFirstBinding Error with First Fragment XML Changes

I'm in Bumblebee v.2021.1.1. I don't have any database elements in my project. I do have defaults in the first fragment: import com.my.app.databinding.FragmentF

Failed to transform moshi-1.13.0.jar (failed for task biometric_storage:kaptGenerateStubsDebugKotlin)

I pulled a team's project that is made in Flutter from Git and for some reason when building the app (pressing the green arrow in Android Studio and running mai

Flutter: Unable to load asset

I cant Upload image as a background to a container, i have added the image in assets folder and added it to pubspec.yaml and showing me that error : I/flutter

How to perform a touch and hold gesture using AccessibilityService?

Path clickPath = new Path(); clickPath.moveTo(x, y); GestureDescription.StrokeDescription clickStroke = new GestureDescription.StrokeDescription(clickPath, 0, 1

System Dark mode setting problem (More Dark mode options)

Hello‚ I had a problem with the night mode in my program. Switching from the phone system to night mode did not change the black text to white. It was jus

In Gradle, how to print out a message in the console / Event Log?

I'm trying to verify that my source and target paths are properly setup when I execute a deploy command. See the example below: (copied from: http://eppz.eu/blo

Multi-line block select using the keyboard in IntelliJ IDEA on a Mac OS X

I've recently switched from Eclipse to IntelliJ IDEA 13. I use the VI keybindings. One non-vi thing I am used to doing in Eclipse is using Shift + ↑ / Sh

Run Button Grayed out: Android Studio

Why is the run button always grayed out in android studio after I get some errors. I need to restart/reboot my android studio every time to run it again. I am s

Android AVD - The emulator process for AVD <emulator_name> has terminated

I searched here on StackOverflow and found many similar questions with many different answers, but none of them worked for me. So,I was using the emulators from

Android API 32 Sources not Found

I am currently using Android Studio Arctic Fox and was trying to dig into the source code of several key Java classes in the Android API 32, however, it states

Flutter App won't build appbundle/APK or run on Android after android studio 3.5

Basically my app run and build on iOS but doesn't on Android anymore after I updated Android studio to 3.5 version and i really need to be able to post a releas

How to simply set the default alarm tone to a custom tone

My app currently uses the default alarm ringtone for certain events, which is realized using the following two lines of code in onCreate(): Uri notification = R

android:exported needs to be explicitly specified after add SonarQube in build.gradle

I created a simple Hello World project in Android Studio as an example in Jenkins pipeline, it works but I want add SonarQube analysis, so I add follow lines in

How can I add only the new items of the JSON API without duplicating the existed items?

I want to make an auto refreshing system for my android application. I use a JSON API in order to get the posts. Here is what I did: handler.postDelayed( runnab