Most voted "android-studio" questions
Use only for questions about using Android Studio. DO NOT use for Android programming questions in general, so use the [android] tag. Android Studio is Google’s official IDE for Android application development, based on Intellij IDEA.
Learn more…1,128 questions
Sort by count of
-
2
votes3
answers10056
viewsHow to run the emulator from the windows command line?
How can I run Android Emulator without having to open Android Studio? the command: android Avd doesn’t work. When I use the command : Emulator -Avd nexus5 I get this error message:…
-
2
votes0
answers69
viewsImport Hellocharts library to Android Studio
My question is the following. I am trying to import a library so I can program charts (line charts, bar etc) in app. I’m using the site as a base: https://github.com/lecho/hellocharts-android I…
android-studioasked 7 years, 9 months ago Ana Waldila 119 -
2
votes1
answer4359
viewsChange android domain design
I need to change the domain of my android project. Example: When I created the project I placed a fictional domain: br.com.dominio-x Then when the project evolved, I registered a valid domain:…
-
2
votes0
answers40
viewsglClear emulator:416 GL err 0x506
When I try to run the app in Android Studio to see the preview of how this error is getting, I’ve tried to use another emulator , even different from the Nexus api…
-
2
votes1
answer39
viewsAlternative view method. Menu*
I am beginner with Android programming and am following the book "Google Android" (2012), of Code House. I arrived at a part where you should create "menus" using the functions present in…
-
2
votes1
answer3463
viewsProblems to generate APK in Android Studio
I’m trying to generate a file . apk from my android pro projector. I always could but after I upgraded it I couldn’t get any more. What I upgraded on two different machines. When I will generate .…
-
2
votes2
answers749
viewsHow to use Android Studio Interface Editor only?
I program for Android with Xamarin in the Visual Studio, but I don’t like his design editor at all, I can only use his editor Android Studio when I need it? I changed the design extension from .axml…
-
2
votes1
answer438
viewsConvert Activity to Fragments
Hello, I’m in need of a lot of help, I’m developing an application for my TCC, I’ve assembled most of the features and now that I’ve been messing with the visual part I’ve had problems, I mounted…
android android-studio android-fragment android-activityasked 7 years, 7 months ago Projeto Bentotec 63 -
2
votes1
answer808
viewsOrganize layout files in Android studio
Following, I have a project that will be huge in the end. currently I finished 1 module of a total of 4 modules and it is already full of layouts, etc. Follow an image just for you to be aware of…
-
2
votes2
answers700
viewsHow to install/run a signed app to view the error log?
I am developing an app and direct testo on mobile (LGE API Level 16) . When testo, runs normal. But when I generated a signed apk, and try to install this apk on the same phone it just says:…
-
2
votes3
answers290
viewsI cannot use class R. in Kotlin
I’m trying to learn Kotlin , but I’m having trouble importing the "R." class into Kotlin. Someone would know what I’m doing wrong ?…
-
2
votes2
answers4736
viewsAndroid Studio 3.0 Update Error
Good today appeared an update to Android Studio and as always put to update normally. When I finished updating I asked to download some versions of Radle and things like that, I just installed it to…
-
2
votes1
answer266
viewsLogin error when trying to upload project from Android Studio to Github by IDE
I tried to upload my project from Android Studio to Github, but it is giving login error. I confirmed my login and password and are correct. Does anyone know how to fix it? I Googled and I couldn’t…
-
2
votes0
answers100
viewsError: Variables debug info not available
Whenever I try to "debug" with Android Studio this error appears: "variables debug info not available". Code in the Gradle: apply plugin: 'com.android.application' apply plugin: 'kotlin-android'…
-
2
votes1
answer137
viewsDifference between Run App (Run App) and Apply changes (Apply changes)
In the toolbar of Android Studio, we have 2 buttons: Run App (Run App) Apply changes (Apply changes) What’s the difference between them? And when to use one or the other ? Update Does the IDE…
android-studioasked 6 years, 7 months ago rbz 9,949 -
2
votes2
answers3586
viewsWhy does the 'preview' of the layouts no longer appear after upgrading to Android Studio 3.0?
I made the updating of Android Studio 2.3.3 for 3.0. From there, only headache: ready designs with problem. Both in the design tab of layouts as in the preview window (preview), the drawing of the…
-
2
votes0
answers329
viewsHow to resolve this dependency conflict?
I created a new project for some tests but this error is appearing Error:Execution failed for task ':app:preDebugAndroidTestBuild'. Conflict with dependency 'com.android.support:support-Annotations'…
android-studioasked 6 years, 6 months ago Paulo Eduardo 31 -
2
votes3
answers1206
viewsPreview Android stopped working after update
I work on an android project and, after updating to Android Studio 3.0, my project started to give problem. Preview of my activities has stopped working, although the app is built and I can install…
-
2
votes2
answers162
viewsI can only solve dependencies by using'+' in Library versions
22 Dec 2017 Error that occurred when with Offlinework After switching to Online Work ORIGINAL: I’ve been trying to avoid doing it that way: dependencies { compile fileTree(include: ['*.jar'], dir:…
-
2
votes0
answers312
viewsEmulator: Error: Unknown AVD name [Nexus_5x_api_26], use -list-avds to see Valid list
I installed the emulator all right, however, when I run, this error appears there. I’m using Linux Mint.
-
2
votes1
answer539
viewshow to know the latest version of a Google library (dependency) for Android Studio
Generally, when we use features in Android Studio, you need to include libraries, example of a file build.Gradle (Module: app): dependencies { implementation fileTree(dir: 'libs', include:…
-
2
votes1
answer58
viewsHold the image and send to link in Android Studio
Hold the image and send to link in Android Studio I use an Imageview that when I click performs a function, but I would like when the image was pressed, another action was done, which would be…
java android android-studio android-activity android-eclipseasked 6 years, 2 months ago Deodoro Júnior 21 -
2
votes1
answer4127
viewsAndroid Studio 3.0.1 Error: Gradle project Sync failed. Basic Functionality (e.g. Editing, debugging) will not work properly [SOLUTION]
I installed Android studio 3.0.1 and tried to create the first application with the choice of an empty activity, but I get the message: Project Gradle synchronization failed. Basic functionality…
-
2
votes1
answer77
viewsSome libraries do not appear in the dependency search list
When we go to the Project Structure configuration menu, the app configuration, and Dependencies, we can add some libraries to a list or search. But it is not any library that appears. For example…
android-studioasked 6 years, 8 months ago Samanta Silva 463 -
2
votes1
answer406
viewsError in findViewById declaration on Android
I’m new to Android and I’m having a difficult programming. That part of the code always error in R of findViewById. When placing the mouse over the error appears the information Cannot Revolve…
-
2
votes0
answers62
viewsAndroid Studio - Error using Bottomnavigationviewex methods
Good afternoon, I’m using the lib Bottomnavigationviewex to make a navigation bar for an Android app, but when will I use the methods "enableXXXX" and the "setTextVisibility" gives the error below.…
-
2
votes0
answers44
viewsAndroid Error: Apache Httpclient does not exist
Now it is mandatory by google to have in the code that updating where the version of targetSdkVersionto apply the latest API’s to applications. I changed the values of SdkVersion to 26 as…
-
2
votes1
answer93
viewsBuild Failure - 'okhttp-3.14.0.jar'
Perhaps someone has already stumbled upon this mistake: FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. >…
android-studioasked 5 years, 8 months ago Caue Moreno 21 -
2
votes2
answers412
viewsReuse code on multi-button onClick
I’m developing an app where it will contain several buttons. I need your help to see if I can improve the code. Actions do the same thing just change the background color and pass me the button…
-
2
votes1
answer20811
viewsForced cancellation of an existing connection by the remote host
So guys, I’ve been breaking my head with this problem in Android Studio: 1 - I’ve already started adb:…
-
2
votes4
answers140
views"Enum" should be used to indicate business rule options?
Let me give you an example that is better: in the supermarket there are several categories of products such as vegetables, canned vegetables and others. To register more enumDo I have to change the…
-
2
votes2
answers3102
viewsHow to put a wait time for the code to run?
I’m playing a little game of memory, more like learning in Java. I will present the code and then explain the question. private void testar (ImageView img, int resultado1, int resultado2) {…
-
2
votes1
answer147
viewsFirebase getDisplayName() returns empty
I have the following code that should return the user data logged in by Firebase, it returns the user without any problem, the ID and the Email, but the value of the name returns empty or null. As…
-
2
votes1
answer148
viewsDifferent layout for portrait(portraint) and landscape(Landscape)
I got the following: package carcleo.com.cadastro; import android.app.Activity; import android.content.res.Configuration; import android.os.Bundle; public class Principal extends Activity {…
-
2
votes2
answers880
viewsUpdate only 1 item within firebase’s
I have the following knot in firebase: Inside this node I need to access the user value and change it, to do this I am using this code: firebaseSenha =…
-
2
votes1
answer97
viewserror when receiving JSON from url
Following the answer given to the question: Android: read JSON data Which is exactly the same problem as mine, I arrived in class: package com.example.carlos.radiosingular.classes; import…
-
2
votes2
answers60
viewsError in class object generation
I have the following method: private ArrayList Clientes (JSONObject jObect) { Log.e("Lis: ", jObect.toString()); /* A linha acima impime E/Lis::…
-
2
votes2
answers103
viewsHow to check whether String[] Random Text is true or not
I’m creating a game at Android Studio and I need to compare if the text on the screen is that or not, to then present the tip. Ps: When using the equals get everything true by showing the message…
-
2
votes1
answer185
viewsHow to load SQL Server data into a combobox in Android Studio using Volley?
Currently, for testing purposes, I am using a spinner, but I now want to implement the data that comes from the BD. Is it possible to put in this same spinner or should I create another application?…
-
2
votes1
answer112
viewsUpdate fragment with Listview
I intend to "refresh" a fragment (fragment30.java) that displays the records of an Sqlite table after the deletion of one of these records . The records shall be submitted using a Listview…
-
2
votes2
answers82
viewscode decrease
Is there any other way to accomplish this code? This code is very repetitive, I wanted to know if it is possible to decrease and make easier the understanding. if (games.getBallId() ==…
-
2
votes1
answer1551
viewsHow to make monetary mask on Edit Text Android
Good morning gentlemen, I’m having trouble putting a monetary mask on an Edit Text, I checked several forums and tutorials but no method worked. My project is to basically make the customer put the…
-
2
votes0
answers598
viewsAndroid Studio: Transparent Checkout Paid Market
I’m trying to integrate for the first time the transparent checkout for Android Mercadopago. I already downloaded and put to work in Emulator the latest version of the application…
android-studioasked 5 years, 6 months ago Aliton Oliveira 161 -
2
votes1
answer187
viewsHow to open an Activity when you don’t have internet?
I’m with a project that uses internet, and when there is no internet the same does not leave the menu because I put a lock access to other activit when there is no internet, but in did not open I…
-
2
votes1
answer2120
viewsIssue when publishing app to Google Play Console
Friends would like a help, I am publishing for the first time an app in the play store, I created the app running perfectly, I already have a Google play console account, I created the app but when…
-
2
votes4
answers11105
viewsError in android SDK "License for package Android SDK Platform 28 not accepted."
I was testing to run my first project on React On, so I ran the command "React-Native run-android", and this error appeared on the android SDK license. My OS is Manjaro linux. I’m new to React…
-
2
votes4
answers1329
viewsReact-Native run android
Hello guys I’m starting a project with React-On but I’m having serious problems so far in trying to run the code in the emulator of android studio, so far I have not made changes in the project…
-
2
votes1
answer357
viewsPass parameters in the Retrofit2 GET method for Android
Talk to me, baby? I’m trying to pass a parameter in the retrofit, but I’m not getting it. I confess that I’m very beginner in Android. I did a little research, but what I tried didn’t work out so…
-
2
votes0
answers94
viewsHow to remove BOM (Byte-Order-Mark) from multiple UTF-8 files?
I have several files in UTF-8 with BOM(Byte-Order-Mark) and I want to remove several at once. The need is that I have an Android project created in Eclipse and need to perform a migration to Android…
-
2
votes1
answer67
viewsATM simulator in Android Studio
I’m setting up a basic ATM simulator in Android Studio, where the user must enter the password, which is already pre-defined, in the case is "Java". If the password is correct, the message "Correct…