android-studio

“Starting Gradle daemon” loop creating endless processes

南楼画角 提交于 2020-12-05 11:51:06
问题 Whenever I open or create a project in Android Studio, and it starts to do its background build or whatever, it gets to "Starting Gradle daemon", but gets in a loop and never stops repeating that step. As a result, the build never finishes and it keeps creating Gradle daemon processes until the system runs out of memory and freezes. This is in Ubuntu. It did work previously, and I don't know what could have changed to make it start happening. Has anyone else run into this problem and been

Kotlin, Android, how to debug coroutines correctly?

老子叫甜甜 提交于 2020-12-05 03:53:59
问题 I trying to debug my coroutines, and breakpoints placed into suspend function does't work. Pls help me to understand why. Working with Android Studio. Ok, i launch a coroutine from viewModelScope: viewModelScope.launch(IO) { when(val result = interactor.getAllWords()){...} } In getAllWords() i wrote: override suspend fun getAllWords(): WordResult { val words = mutableListOf<Word>() when (val wordsResult = getAllWordsWithoutFiltersApplying()) {} ... return getWordsWithSelectedPattern() I have

Kotlin, Android, how to debug coroutines correctly?

◇◆丶佛笑我妖孽 提交于 2020-12-05 03:47:42
问题 I trying to debug my coroutines, and breakpoints placed into suspend function does't work. Pls help me to understand why. Working with Android Studio. Ok, i launch a coroutine from viewModelScope: viewModelScope.launch(IO) { when(val result = interactor.getAllWords()){...} } In getAllWords() i wrote: override suspend fun getAllWords(): WordResult { val words = mutableListOf<Word>() when (val wordsResult = getAllWordsWithoutFiltersApplying()) {} ... return getWordsWithSelectedPattern() I have

How can I change the ram amount that the android emulator is using?

自闭症网瘾萝莉.ら 提交于 2020-12-05 02:31:01
问题 at the first setup, Android Studio asked me that how much ram does the emulator going to use. I entered 800M but it worked slowly. I need to make it a little bit bigger like 1.5GB. How can I do that? Is it editable after the first setup? 回答1: Go to Tools->Android->AVD Manager , there's something like pencil to edit your AVD click on that, then in the pop-up window click Show Advanced Settings and there you can change the RAM size. 回答2: Create a new virtual device from the AVD Manage r. Select

How can I change the ram amount that the android emulator is using?

孤街浪徒 提交于 2020-12-05 02:29:12
问题 at the first setup, Android Studio asked me that how much ram does the emulator going to use. I entered 800M but it worked slowly. I need to make it a little bit bigger like 1.5GB. How can I do that? Is it editable after the first setup? 回答1: Go to Tools->Android->AVD Manager , there's something like pencil to edit your AVD click on that, then in the pop-up window click Show Advanced Settings and there you can change the RAM size. 回答2: Create a new virtual device from the AVD Manage r. Select

Installation failed with message Failed to commit install session

那年仲夏 提交于 2020-12-04 15:40:22
问题 Getting an error message while trying to run an apk through android studio 3.4 canary 1. Gradle plugin version com.android.tools.build:gradle:3.4.0-alpha01 Installation failed with message Failed to commit install session 526049657 with command cmd package install-commit 526049657.. It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. I have tried uninstalling the apk, restarting android studio and the device and

Flutter not able to run, get_navigation & theme error

ε祈祈猫儿з 提交于 2020-12-03 13:23:18
问题 i'm actually trying to run my app but i'm stucked with that error : Running "flutter pub get" in riverpod_stacked_app... Launching lib/main.dart on sdk gphone x86 arm in debug mode... Running Gradle task 'assembleDebug'... ../../.pub-cache/hosted/pub.dartlang.org/get-3.15.0/lib/get_navigation/src/extension_navigation.dart:235:37: Error: No named parameter with the name 'shadowThemeOnly'. final theme = Theme.of(context, shadowThemeOnly: true); ^^^^^^^^^^^^^^^ ../../development/flutter/packages

Android Studio 4.1 adb got stuck

二次信任 提交于 2020-12-03 02:47:41
问题 I upgraded my Android Studio to v4.1. But adb commands are doesn't respond. See: Therefore Android Studio Devices status stuck at "Loading Devices". Like this: Does anyone know about this issue? 回答1: I had been dealing with this bug as I stated in the comment section for a while in Android Studio Canary. But it seems like this is a general problem that newer Android Studio versions have. So, these steps would work for most people. Uninstall Android Studio including the user settings. (Don't

Android Studio 4.1 adb got stuck

≯℡__Kan透↙ 提交于 2020-12-03 02:40:50
问题 I upgraded my Android Studio to v4.1. But adb commands are doesn't respond. See: Therefore Android Studio Devices status stuck at "Loading Devices". Like this: Does anyone know about this issue? 回答1: I had been dealing with this bug as I stated in the comment section for a while in Android Studio Canary. But it seems like this is a general problem that newer Android Studio versions have. So, these steps would work for most people. Uninstall Android Studio including the user settings. (Don't

Update to Android Studio 4.1 ,flutter plugin and dart plugin not Installed

橙三吉。 提交于 2020-12-02 07:11:56
问题 I have got a similar question like this. But this problem occurred after updating Android Studio to version 4.1 from version 4.0. using flutter flutter doctor -v 回答1: I solve this problem like this Only for MacOS $ ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1 回答2: It is a flutter issue on 1.22 version, and happens after upgrading to Android Studio 4.1. It was already fixed on 1.23 version (dev channel). You can continue