android-studio

Running app in Android Studio

不羁的心 提交于 2020-06-29 12:04:05
问题 I have an Asus Zenfone 2 Laser and I'm using android studio to create apps. When I load an application stored in the hard disk of my computer for debugging, no problems, but when the application is stored in a USB device, at first android studio warns that there is already a version of the same app in my phone and asks if it has to uninstall it in order to install the new version; when I click the button to uninstall it, it doesn't install the new one... How can I fix the problem? Thanks 回答1:

How can I display a JPG image, taken from an API, in a Recyclerview in Android Studio?

不想你离开。 提交于 2020-06-29 05:23:09
问题 The images are being downloaded in RecipeApiActivity - I can see them in a test ImageView called 'imigiview', so the API Request works! But I want them to be displayed correctly in a recyclerview - now it shows nothing at all. For that I created a list of Bitmaps in which I put all the downloaded bitmaps, this list is given to the RecipeAPIAdapter that should place them in the RecyclerView. Can you help me find out why the images are not shown? ( The Logcat gives me no error of any kind)

Android Studio: unresolved reference for java and javax imports, but project compiles

偶尔善良 提交于 2020-06-29 04:45:24
问题 I am trying to create my own Annotation processor in Android Studio project. I've created another module for that in Android Studio . I am able to compile the project. I can't just use autocomplete and other stuff. IDE treat all the references as unresolved references error in that case How can I resolve this issue? WHAT IS IMPORTANT When I created new libary module "autoadapter-process" by default Android Studio created it with this implementation in build.gradle for this module:

Getting “The Application Default Credentials are not available” error in android studio even though env variable is set

时光总嘲笑我的痴心妄想 提交于 2020-06-29 04:22:56
问题 I'm currently having an issue in android studio. I have set my Google app credentials environment variable AND restarted android studio over and over and its giving me the same error. I know I am using the correct service account JSON file for my app and I know the GOOGLE_APPLICATION_CREDENTIALS environment variable is set (The variable shows up in my android studio terminal AND my computer's terminal), I just have no clue why this isn't working. Also even though the variable is set, when I

How to make pull request from android studio?

为君一笑 提交于 2020-06-29 04:18:16
问题 I forked application to android studio and when I try to make a pull request: I get : Can't Create Pull Request Push failed: failed to push some refs to 'https://github.com/projectname.git' What is the right way to do that? Note : I can commit and update my projects but I can't make pull request to other projects. 回答1: This is obviously an authentication problem. There are WAY too many unknowns, so I doubt anyone can give you a definitive answer. Here are the steps to investigate in order to

Android resource linking failed AAPT: unknown option '--proguard-minimal-keep-rules'

馋奶兔 提交于 2020-06-29 04:08:12
问题 My Android Studio was working fine, everything was good but after updating Android Studio to the latest version and updating gradle I got the following error Could you please provide the solution, thank you Task :app:processDebugResources FAILED AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{}],"original":"AAPT: unknown option '--proguard-minimal-keep-rules'.\n\naapt2 link [options] -o arg --manifest arg files...\n\nOptions:\n -o arg Output path.\n --manifest arg

Installing emulator for flutter on Android Studio

浪尽此生 提交于 2020-06-29 04:05:23
问题 Im on Windows 10 and have been trying for days to get an emulator working with Android Studio and have followed every tutorial religiously with no luck. I have set up the Nexus 6 emulation which starts just fine as shown in my image below but the devices dropdown always says no devices . So frustrated with this and nothing is mentioned about this issue anywhere. I also get an error unable to locate adb everytime I start the virtual device. What is causing the issue and what are the proper

Hide Button if not data in recyclerview

风格不统一 提交于 2020-06-29 04:02:34
问题 I had created a app in which i have multiple edittext and one buttonwith recyclerviuew and one button which are setvisibilty as Gone.On Button click it add all my data in my recyclerview list with by chnaging visibality of my recycelr view and my button.In my Custom Adapter i am using a image view to delete the item from postion now i want that if it delete all data from list then it should automatically hide my Button and recyclerview. //Recycler_view Adapter public class Myviewholder

Android studio 3.6.3 not supporting for RNCryptor module

一世执手 提交于 2020-06-29 03:51:59
问题 We have face the issue while upgrading the existing application in android studio 3.6.3 Issues: ERROR: ERROR: Unable to find method 'com.android.build.gradle.internal.profile.ProfilerInitializer.init(Lorg/gradle/api/Project;)V'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network) The state of a Gradle build process (daemon) may be

How to run “Watchface for wearos” codelab?

大兔子大兔子 提交于 2020-06-29 03:42:21
问题 I am new to Android and WearOS and also to Gradle, and I just want to follow along this Codelab: https://codelabs.developers.google.com/codelabs/watchface/index.html#0 So I downloaded Android Studio and imported the project https://github.com/googlecodelabs/watchface but when compiling I just get the error Failed to resolve: com.google.android.support:wearable:2.0.0 I already tried to change SDK Versions and other things, but it didn't help. I'm pretty sure it's just a few version settings,