android-studio

android studio gives me an error : (access denied)

北城以北 提交于 2021-01-25 07:04:50
问题 I deleted my app on phone and then I run android studio but it gives me an error like this : C:\reactnative\ProjectName\android\app\build\intermediates\signing_config\debug\out\signing-config.json (Access Denied) I didnt get this error before. 回答1: Just delete the file signing_config.json Run react-native run-android or run app from android studio again 回答2: delete build folder which is placed in C:\reactnative\ProjectName\android\app\ and then run your project react-native run-android 回答3:

Failed to find build tools revision 29.0.2 - Android Studio

北战南征 提交于 2021-01-24 10:48:05
问题 Recently I encountered this issue after updating my android studio to the latest version 4.0. 回答1: Click Open Project Structure icon or use keyboard shortcut directly (shift+ctrl+alt+s) https://i.stack.imgur.com/BhxKv.png Click Modules https://i.stack.imgur.com/UCA9l.png Select the properties option https://i.stack.imgur.com/AzaaQ.png choose to download and install the various configurations make sure the Build Tools version and the compiled sdk version are consistent https://i.stack.imgur

Why is Android Studio failing to build, with an AAPT2 error on images?

耗尽温柔 提交于 2021-01-22 19:03:46
问题 After a recent update, Android Studio fails to build an unmodified project with errors along these lines: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.1-6503028-linux Daemon #0: Unexpected error during compile '/path/to/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png', attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. Notice that it's failing on an image

Why is Android Studio failing to build, with an AAPT2 error on images?

折月煮酒 提交于 2021-01-22 19:02:37
问题 After a recent update, Android Studio fails to build an unmodified project with errors along these lines: > A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade > AAPT2 aapt2-4.1.1-6503028-linux Daemon #0: Unexpected error during compile '/path/to/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png', attempting to stop daemon. This should not happen under normal circumstances, please file an issue if it does. Notice that it's failing on an image

Flutter not detecting Android Studio

Deadly 提交于 2021-01-22 04:19:05
问题 I have installed flutter correctly on my Ubuntu machine. I have also installed Android Studio and its plugins Flutter and Dart. Anyway, when I run: flutter doctor --verbose I get this output: [✓] Flutter (Channel stable, 1.20.1, on Linux, locale es_ES.UTF-8) • Flutter version 1.20.1 at /root/snap/flutter/common/flutter • Framework revision 2ae34518b8 (hace 5 días), 2020-08-05 19:53:19 -0700 • Engine revision c8e3b94853 • Dart version 2.9.0 [✓] Android toolchain - develop for Android devices

Android Studio Project Encoding Default Value

社会主义新天地 提交于 2021-01-21 10:17:26
问题 I'm using Android Studio 1.2, when I create a project, then I open the File Encodings setting window via File -> Settings -> Editor -> File Encodings , there is the Project Encoding option which defaults to GBK on my computer (Windows 7 64 bit). I could manually change it to UTF-8 for each project, but is there a way to let it default to UTF-8 directly? Thanks in advance. 回答1: Please have a try, it works for me. File -> Other Settings -> Default Settings, then find "File Encodings", change

Android Studio Project Encoding Default Value

馋奶兔 提交于 2021-01-21 10:15:53
问题 I'm using Android Studio 1.2, when I create a project, then I open the File Encodings setting window via File -> Settings -> Editor -> File Encodings , there is the Project Encoding option which defaults to GBK on my computer (Windows 7 64 bit). I could manually change it to UTF-8 for each project, but is there a way to let it default to UTF-8 directly? Thanks in advance. 回答1: Please have a try, it works for me. File -> Other Settings -> Default Settings, then find "File Encodings", change

Android circular button clickable area

随声附和 提交于 2021-01-21 09:26:33
问题 I've made this circular button in Android Studio: I used a custom backgroud. The problem is that the highlighted yellow area in the image, is clickable. I want to reduce the clickable area to just the red circle. Is there any way to do such thing? 回答1: You cannot remove that transparent area of your image. Because it's a part of your image. Any kind of image always have rectangular shape . If the corners of the image are transparent, doesn't mean those pixels at the corner are separated from

Build Flutter app in release mode for iOS

孤者浪人 提交于 2021-01-21 06:20:17
问题 I have Android Studio with Flutter plugin installed. Flutter SDK is also installed on my Mac through Android Studio and I know path to it. I want to run my app in release mode on real iOS device. Not only to hide "slow mode" banner that can be done using this code as I know new MaterialApp( debugShowCheckedModeBanner: false, ... but also to check how my app works. I found this instructions https://flutter.io/ios-release/ but still can't build app in release mode. Each time I try to run

Build Flutter app in release mode for iOS

核能气质少年 提交于 2021-01-21 06:19:42
问题 I have Android Studio with Flutter plugin installed. Flutter SDK is also installed on my Mac through Android Studio and I know path to it. I want to run my app in release mode on real iOS device. Not only to hide "slow mode" banner that can be done using this code as I know new MaterialApp( debugShowCheckedModeBanner: false, ... but also to check how my app works. I found this instructions https://flutter.io/ios-release/ but still can't build app in release mode. Each time I try to run