android-studio

Performance issues when running Android Studio Profiler: The IDE is running low on memory

笑着哭i 提交于 2020-12-13 04:05:13
问题 When running Android Studio Profiler I get this message at the bottom after generating two or three "heap dumps": The IDE is running low on memory and this might affect performance. Please consider increasing available heap. My PC runs really slow after getting this message even after stopping the profiler and the only option to restore performance is restarting Android Studio. Why is this happening? Is there any other way to restore the performance after generating a heap dump on a project?

Plugin “Android Bundle Support” is incompatible

感情迁移 提交于 2020-12-13 03:10:36
问题 everyone, I have a very weird error when i launch android studio since last update. I have this error: Plugin Error: Plugin "Android Bundle Support" is incompatible (until build AI-195.SNAPSHOT < AI-201.8743.12). I can't find any info online about it. When i paste on google just like i did here. No results are found. Could you please tell how i could fix it ? Sorry about not giving anymore details but there is very few info online. Thank you so much in advance ;) 回答1: Android Support plugins

Android Studio 4.1 gradle 6.7 : get manifestOutputDirectory error

痴心易碎 提交于 2020-12-13 03:01:57
问题 After upgrade to Android Studio 4.1, I've got the following issue when compiling : > Task :app:processGoogleDebugManifest get manifestOutputDirectory error > Task :app:processGoogleDebugResources FAILED Execution failed for task ':app:processGoogleDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under

Android Studio 4.1 gradle 6.7 : get manifestOutputDirectory error

落花浮王杯 提交于 2020-12-13 02:58:23
问题 After upgrade to Android Studio 4.1, I've got the following issue when compiling : > Task :app:processGoogleDebugManifest get manifestOutputDirectory error > Task :app:processGoogleDebugResources FAILED Execution failed for task ':app:processGoogleDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.0-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under

How do I get the context from within an activity class?

孤者浪人 提交于 2020-12-12 07:37:47
问题 While I'm trying to initialize context using getActivity() , Android Studio shows an error "could not resolve symbol". How do I get the context from within an activity class? 回答1: Don't use getActivity . Use this . For example: Context context = this; getActivity() is used if you are inside fragment. In an activity, you can get by using the this keyword. By the way, inside an activity, you don't need to use context , getSharedPreferences() method is already present in Activity . Simply call

Android Studio 4.1.1 Where i get detal about error? A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

别说谁变了你拦得住时间么 提交于 2020-12-10 13:23:36
问题 Hi, after upgrading to Android Studio 4.1.1 and classpath 'com.android.tools.build:gradle:4.1.1' I get an error for Rebuild Project, Debug and Run Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.1-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. i try

Android Studio 4.1.1 Where i get detal about error? A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

梦想的初衷 提交于 2020-12-10 13:22:12
问题 Hi, after upgrading to Android Studio 4.1.1 and classpath 'com.android.tools.build:gradle:4.1.1' I get an error for Rebuild Project, Debug and Run Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.1-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. i try

Android Studio 4.1.1 Where i get detal about error? A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

十年热恋 提交于 2020-12-10 13:21:22
问题 Hi, after upgrading to Android Studio 4.1.1 and classpath 'com.android.tools.build:gradle:4.1.1' I get an error for Rebuild Project, Debug and Run Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.1-6503028-windows Daemon #0: Unexpected error during link, attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. i try

PlayStore app in some devices still showing older version while new version is live and available on play store

喜你入骨 提交于 2020-12-10 12:02:43
问题 Some device's play store app is showing older version of my app(1.91) while new version(1.92) is available on play store. When I open the play store app programmatically to update my application from update button (which I have in my android app )of my app, play store app shows open button but it should have update button there(so user can update my app). What should I do to resolve this problem. Should I unpublish the older version after publishing new version on play store 回答1: A little

PlayStore app in some devices still showing older version while new version is live and available on play store

烂漫一生 提交于 2020-12-10 11:54:19
问题 Some device's play store app is showing older version of my app(1.91) while new version(1.92) is available on play store. When I open the play store app programmatically to update my application from update button (which I have in my android app )of my app, play store app shows open button but it should have update button there(so user can update my app). What should I do to resolve this problem. Should I unpublish the older version after publishing new version on play store 回答1: A little