android-studio

DataBinding templates for Android Studio?

不打扰是莪最后的温柔 提交于 2021-02-05 07:44:28
问题 I've decided to use DataBinding library for my Android project. Are there any plugins/code templates available to install into Android Studio to get new Activity / Fragment etc added using Android Studio's wizard auto generated code compatible with DataBinding? I need to create models/presenters/variables in xml every time, can I get them to be generated automatically? 回答1: you can ALT + Enter on your view root then convert into databinding layout . 回答2: Well,it's not fully what am I looking

Cannot run flutter doctor --android-licenses

左心房为你撑大大i 提交于 2021-02-05 07:36:17
问题 I want to use flutter on my computer, I use Android Studio and Visual Studio Code. when I was running a flutter doctor , a warning like this appeared, [√] Flutter (Channel stable, v1.17.3, on Microsoft Windows [Version 10.0.14393], locale id-ID) [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3) X Android license status unknown. Try re-installing or updating your Android SDK Manager. See https://developer.android.com/studio/#downloads or visit visit https:/

Error initializing ADB: Debug Bridge not found

ぐ巨炮叔叔 提交于 2021-02-05 07:10:44
问题 I want to work with some files in flutter and so I wanted to use the Android Studio Device File Explorer to check if everything works correctly. But the Device File Explorer shows a red warning "Error initializing ADB: Android Debug Bridge not found" On a "normal" Android Project with Java there is no Problem and everything is displayed correctly. I reinstalled Android Studio, changed the AVD but nothing changed. Is this a bug in Flutter or Android Studio? Thanks for helping. 回答1: Ok, I

Make Proguard completely ignore package

早过忘川 提交于 2021-02-05 05:50:07
问题 Is it possible to have Proguard enabled but keep some classes completely untouched by Proguard? I have the following lines in my proguard config file: -keep class com.heyzap.** { *; } But as I can see classes inside Heyzap package are actually changed anyway after Proguard pass (they are different from what I originally had in Heyzap jar file). I don't know what exactly Proguard do with Heyzap SDK but after this build process fails on converting jar file to dex format with error: EXCEPTION

Error inflating class androidx.appcompat.widget.FitWindowsFrameLayout after migration to androidx

强颜欢笑 提交于 2021-02-05 05:20:34
问题 I made a migration to AndroidX , then I'm getting an error if I try to run the project into an emulator with API 29 . There is no problem in emulators/real devices with API 28 and previous. java.lang.RuntimeException: Unable to start activity ComponentInfo{ [...]}: android.view.InflateException: Binary XML file line #23 in [...]:layout/abc_screen_simple_overlay_action_mode: Binary XML file line #23 in [...]:layout/abc_screen_simple_overlay_action_mode: Error inflating class androidx.appcompat

Error inflating class androidx.appcompat.widget.FitWindowsFrameLayout after migration to androidx

泪湿孤枕 提交于 2021-02-05 05:20:29
问题 I made a migration to AndroidX , then I'm getting an error if I try to run the project into an emulator with API 29 . There is no problem in emulators/real devices with API 28 and previous. java.lang.RuntimeException: Unable to start activity ComponentInfo{ [...]}: android.view.InflateException: Binary XML file line #23 in [...]:layout/abc_screen_simple_overlay_action_mode: Binary XML file line #23 in [...]:layout/abc_screen_simple_overlay_action_mode: Error inflating class androidx.appcompat

Error inflating class androidx.appcompat.widget.FitWindowsFrameLayout after migration to androidx

扶醉桌前 提交于 2021-02-05 05:20:11
问题 I made a migration to AndroidX , then I'm getting an error if I try to run the project into an emulator with API 29 . There is no problem in emulators/real devices with API 28 and previous. java.lang.RuntimeException: Unable to start activity ComponentInfo{ [...]}: android.view.InflateException: Binary XML file line #23 in [...]:layout/abc_screen_simple_overlay_action_mode: Binary XML file line #23 in [...]:layout/abc_screen_simple_overlay_action_mode: Error inflating class androidx.appcompat

Uploaded an APK that is not signed with the upload certificate-

泪湿孤枕 提交于 2021-02-04 21:39:24
问题 My app is live on play store. I have created my .jks file with Alias name key1. But when I have tried to update my signed APK on play store, It throws an error : "You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint" 回答1: You have to use same .jks file that you have generated first time when you want to generate Signed apk. Use .jks name same as created first time like key0 do not change it to key1 . Once

Uploaded an APK that is not signed with the upload certificate-

家住魔仙堡 提交于 2021-02-04 21:37:23
问题 My app is live on play store. I have created my .jks file with Alias name key1. But when I have tried to update my signed APK on play store, It throws an error : "You uploaded an APK that is not signed with the upload certificate. You must use the same certificate. The upload certificate has fingerprint" 回答1: You have to use same .jks file that you have generated first time when you want to generate Signed apk. Use .jks name same as created first time like key0 do not change it to key1 . Once

Android Automotive Arm_86 is not listed in Virtual Devices

£可爱£侵袭症+ 提交于 2021-02-04 21:06:43
问题 I've been working on android automotive application but emulator is not yet setup due to unknown reason. I have tried the documentation and this and i'm using canary channel. After downloading the image for automotive. it's not listed under virtual devices. I'm using android studio version 4.0.1, how to resolve it? Thanks 回答1: This was resolved for me by using Android Studio version 4.2 Canary 8 to set up my automotive emulator. Download Android studio version 4.2 Canary alongside Android