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
-
1
votes1
answer3175
viewsConfiguration Webview step by step
I am developing an HTML5 application for devices mobile. Initially I used tools like Adobe Phonegab Build and App Inventor. For future projects, I have to use Android Studio. The problem is that…
-
1
votes1
answer318
viewsWhat does it take to learn specific classes and methods for a task?
What I need to learn about classes and methods in general for Java and Android programming? For example: if I need to display a PDF, as I’ll learn to do it? We know that there are several classes,…
-
1
votes0
answers187
viewsError installing Android Studio IDE
Whenever when I install android Studio appears this error: execution failed for task ':app:compileDebugAidi'. java.lang.IIIegalStateException:aidl is missing I have tried to update and does not…
-
1
votes0
answers23
viewsError pressing button in app created from Android Studio
Guys, here’s what happens when I test this code on the emulator it works normally, but when I install the apk on some physical cell phone and press the button btn the application hangs and says it…
-
1
votes1
answer309
viewsParsing JSON with Volley android
I have this JSON on the server side: [{"idreg":"271896", "code":"USD", "codein":"BRL", "name":"D\u00f3lar Comercial", "high":"3.2652", "pctChange":"-0.939", "open":"0", "bid":"3.2492",…
-
1
votes2
answers8830
viewsError: Failed to find 'ANDROID_HOME' Environment variable
I am beginner in mobile development and was studying IONIC, when I went to try to generate the test project apk gave the following error: WARN: Ionic.project has been renamed to Ionic.config.json,…
-
1
votes1
answer158
viewsError: "Psi and index do not match" Android Studio
Sometimes when cloning a new branch project or download a new code it builda successfully but does not recognize most of the functions of the android itself in the app. In the log error appears "Psi…
-
1
votes1
answer385
viewsHow to toggle debug directory view for release, or vice versa?
In Android Studio on the left side corner it is possible to set the type of view relative to the directory structure, as in my case shows is set Android. See below: As you can see, the…
android-studioasked 7 years, 4 months ago viana 27,141 -
1
votes1
answer518
viewsHelp with android studio apk
I am compiling my application in android studio and not from any error. in simulator I see the application normally. when I go in the folder where the app is C: Users Ronaldo Desktop Android Test…
android-studioasked 7 years, 3 months ago Ronaldo Santos 99 -
1
votes1
answer109
viewsInstrumental Tests Android Studio
When designing instrumental tests for my android app, I come across a problem and I don’t see why this should happen. Why Mainactivity is Not Recognized?…
-
1
votes0
answers172
viewsSingle Page Application in Webview of Android Studio
It is possible to use the angular Single page application in Webview with Android Studio?
angularjs android-studio webview angular-routes single-page-applicationasked 7 years, 3 months ago Aderbal 119 -
1
votes0
answers420
viewsHow to update SDK Tools?
downloaded the Glide library with.github.bumptech.Glide:4.0.0 that gives this Gradle error: Error:Failed to resolve: com.android.support:support-Annotations:25.3.1 I’ve looked for sdk tools 25.3.1…
android-studioasked 7 years, 3 months ago Nilson Rodrigues 83 -
1
votes1
answer298
viewsError while trying generates Ionic apk v2
Commando: ionic build android --prod Environment variables: ANDROID_HOME C:\Android\sdk CLASSPATH .;%JAVA_HOME% JAVA_HOME C:\Program Files (x86)\Java\jdk1.8.0_121 Path ;%JAVA_HOME%\bin Error: Error:…
-
1
votes2
answers1303
viewsPosition text in Textviews and Edittexts with an image as background?
I created a simple app that has only one Textview and a Edittext: As you can see changed the background of both, so far no problem: The problem appears when I insert texts, because they are poorly…
-
1
votes2
answers194
viewsUnable to rename resource files (layout) (Android Studio 3.0 Beta 3 is installed)
Beta 3 does not allow renaming resource files such as layout files. It shows the rename dialog box, but when trying to apply changes, reads the following error message: Refactoring cannot be…
-
1
votes0
answers270
viewsFirebase class is not being found for import
I did the whole process below: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group:…
-
1
votes0
answers459
viewsandroid studio: AVD Nexus_5 is already running
I cannot run the AVD because the message appears below: I tried to delete the folder below: Someone knows what I must do?…
-
1
votes1
answer119
viewsPush failure - Android Studio 3.0
I upgraded my Android Studio to version 3.0, but now that I’ve made the push in my app, he presented the following error, I have tried in every way and I cannot effect such action: Unable to access…
-
1
votes0
answers75
viewsHow do I get the data from the person who just logged in to my system?
the previous question I wanted to know the validation and I already realized it , now I want to know how I took the data of the person who logged in and play to another screen and separate each data…
-
1
votes2
answers379
viewsError when using Google’s API to run from Android 2.3 (API Level 9)
I’m developing a app which will run from version 2.3 of Android (Gingerbread - API Level 9). However, when trying to add dependencies to Firebase and of Google Admob, the following error occurred…
-
1
votes1
answer859
viewsAccess Webservice localhost - Android Studio
I have a webservice that was made in ASP.NET in Visualstudio 2013, I am running it locally (localhost), and I am not being able to access it in the android emulator of Android Studio, nor on my…
-
1
votes1
answer834
viewsRestore Deleted Android Studio Folder
Hello I wonder if there is any way to restore a deleted folder inside Android Studio, in Eclipse there is the option "Restore from Local History" but I do not know if it is possible to do the same…
-
1
votes1
answer576
viewsBack to Webview
I have an application with webview and I wish that when I click the back button of the mobile phone it goes back to previous page, I do not know how I do, someone helps me? Below follows my code.…
-
1
votes2
answers35
viewsProblems handling Vector Asset
Android Studio is returning this error when I add images to my project, but the selected images are the native IDE icons.…
-
1
votes1
answer1267
viewsProblem in making Textview display updated value
I’m making a simple application, it’s just a counter, with two buttons, "+"e"-", which consists of displaying an initial value of 0, and if I click any of the buttons, the value displayed on the…
-
1
votes1
answer67
viewsQuestion ~beginner about 2 android SDK`s on the same pc
I downloaded Visual Studio and along with it I also installed the android sdk,but the Android IDE Studio comes along with sdk;I already searched the folders of Android SDK but there are many with…
-
1
votes1
answer484
viewsError opening project from another pc
I have a problem , I’ve been working for days on another pc and when I opened the project of this app that when sending was zipped gave me a huge mistake that had never given me before. When I hit…
android-studioasked 7 years, 3 months ago Emanuel Sobreiro 105 -
1
votes2
answers1048
viewsBringing a sum in Sqlite Android
I have a problem in the development of an App, following, I have a list that all the data of donations in the bank, and in this Activity I created a Textview to receive the total value of those…
-
1
votes1
answer603
viewsHow to import a drawable automatically in multiple dimensions in Android Studio?
How could I add an image (drawable) in several dimensions at once, already creating high pixel density versions? hdpi xhdpi xxhdpi xxxhdpi Would have some way to expedite this task?…
android-studioasked 6 years, 9 months ago Nakamoto 1,341 -
1
votes1
answer2843
viewsZoom in the Android Studio interface
In Windows we hold the ctrl and use the scroll mouse to increase or decrease the source (approach or disproxify). In linux I did not find this function. How to zoom in the interface of android…
android-studioasked 6 years, 9 months ago rbz 9,949 -
1
votes2
answers2528
viewsFind Sqlite Database on Android
Next, I’m creating an application for Android, where I use a local Sqlite bank, never gave any kind of problem of registration or database query, so I never had to take the bank direct in the…
-
1
votes1
answer808
viewsFormatting/Breaking Line of Code in Android Studio
When I do automatic reformatting Ctrl+L the code gets indented, but the lines don’t break, as in Eclipse and Netbeans, so I have to drag the window constantly to see the end of a larger line, as in…
android-studioasked 6 years, 6 months ago Caio Teixeira 61 -
1
votes1
answer642
viewsError compiling Ionic - Android
all right? I’m having trouble compiling the APK by Ionic. I already removed Android Studio and downloaded again. But it did not work. If I try to compile by the terminal it from the error, but if I…
-
1
votes0
answers390
viewsError while running project in android studio
While running my project the following error appeared: Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process…
-
1
votes1
answer8201
viewsError React-Native run-android
I installed the React-Native-cli, android sdk and the emulator of android. I managed to do the init but when I run the command React-Native run-android it shows the log: Scanning 577 folders for…
-
1
votes0
answers289
viewsError building: Timed out while Waiting for slave aapt process
I’d like to know how I can make that mistake when I try to create a new app. The error is as follows: it loads everything right, but when it will load the Gradle it gives error and the screen is…
-
1
votes0
answers84
viewsLock cell phone buttons, by android studio
I have a question. I would like to press a button in the layout created in Android Studio, could lock the buttons on the phone(volume and on/off). And that it would only return to normal, after I…
-
1
votes1
answer112
viewsSign in Textview - Android
I wonder if you have how to do the sign effect on a textview the text is too big, and I don’t want to break line, I want the text to move from right to left horizontally. The text I want to…
-
1
votes1
answer376
viewsKotlin error does not find bytecode for lambda Function: "Failed to find byte code for java/util/Function/Biconsumer"
When I try to run my app on mobile (emulator happens the same), the following error occurs: Error:FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
-
1
votes0
answers490
viewsList data from an API on android
Hello, I’m trying to list data from a web API, as I’ve never listed this way I’m finding problems to understand the solution of the listing, the API Url returns some values I want to list them in…
-
1
votes1
answer214
viewsGoogle firebase login error
I am new in Android programming and would be grateful if you could help me. I made an app that uses login with Google firebase, works perfectly when I run directly on mobile but when I sign the APK…
-
1
votes1
answer113
viewsHow to reuse a layout?
I want to create a screen with editorial menu, as I do to "reuse" a layout to have multiple essays and fewer layout files (xml).
-
1
votes0
answers46
viewsHow to leave two screens in an Activity, being able to exchange one of them via code
Good day, late or night!! I need to make a screen in android split in the middle, where the screen on top screen a video player, and the bottom a chat, where in a due event will be replaced by…
android android-studio android-layout android-activityasked 6 years, 1 month ago Jean Carlos Sampaio 11 -
1
votes0
answers673
viewsHow to use a Figma layout in Android Studio?
I have a project in Figma with some screens, for example the image below: Figma generates the XML or SVG code of each component, such as the "screen": <!-- layout/*.xml --> <RelativeLayout…
-
1
votes1
answer73
viewsMany logs with the message "setTypeface with style : 0"
I’m making a app in the android studio, and after spending a few activities the screen becomes black and the last record of the log cat is this message. I’ve looked at the other questions about it…
-
1
votes0
answers759
viewsReceive data from an Arduino sensor for the Android app ( Android Studio)
Good night! I need a help with the application I’m developing, I made the bluetooth connection of my Arduino with the android app and it’s all right, I can turn on and off small but I do not know…
-
1
votes1
answer670
viewsUnable to instantiate Activity Componentinfo; java.lang.Illegalstateexception: System services not available to Activities before onCreate()
I have a project of a chat socket running in Swing and now I’m passing it to Android. Everything was working perfectly until I put in the code that makes the magic happen. The application closed and…
-
1
votes0
answers81
viewsCRUD Android doubts
Good afternoon I’m with 3 doubts regarding a crud I made in my app. 1 I did a field search and it seems that does not pick up any phone of the line J7 and I was wondering if someone can tell me why…
-
1
votes2
answers43
viewsApp Closes when installing when I will test
I am a beginner and already in my first tutorial I have this mistake I did the whole process as it is in the video tutorial, and when I try to test it on my phone, it compiles, installs, opens and…
-
1
votes1
answer50
viewsError when complilar app created in Android Studio
When inserting a ImageView, and try to run the app on the emulator, it displays the following message on the screen: **com.android.phone has stopped** , but that message disappears and it performs…