Questions tagged [android-studio]

21387 questions
1

votes
0

answer
596

Views

Intel HAXM is required to run this AVD error in Android Studio

I followed the steps in this link: Solved problem 1st step: Checked BIOS and enabled the virtualization capability. 2nd step: Installed the Intel HAXM installer. 3rd step: Checked android studio and see if the problem is solved, it is not solved. I checked youtube and google searches and I've done...
Marion
1

votes
0

answer
50

Views

Execution failed for task '_app_transformResourcesWithMergeJavaResForDebug' in Android Studio 3.0.1

Everytime I try to run my android app, the following error emerges... Execution failed for task '_app_transformResourcesWithMergeJavaResForDebug' More than one file was found with OS independent path 'org/bytedeco/javacpp/macosx-x86_64/libusb-1.0.dylib' My app's build.gradle file looks like this......
Genesis
1

votes
0

answer
40

Views

bottom of screen address bar

I am trying to imitate the address bar in Chrome Dev Apk or the chrome:flags for android with just a EditText and a imgButton. I have tried many ways to do this such as with a scrollview but nothing is working. I have a removed the code for the scrollview and am wondering if you could tell me where...
EquiWare
1

votes
0

answer
449

Views

Couldn't open android device monitor

I got the error message: An error occurred. See the log file. This is the error that I got in the log file. I have no clue what is happening. I have tried all the answers from other posts none of them is working. Everything else is working perfectly fine. Just the android device monitor is not star...
jeevaa_v
1

votes
0

answer
35

Views

androidstudio mediaplayer can't find my file

I'm trying to create an application that has a button. If you press that button, a song called Test.mp3 will play. I copied the song with the exact name and file type to the directory, but it always show that the file was not found. I have tried plenty of things including copying the song to differe...
Kira
1

votes
3

answer
3.6k

Views

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. >

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. java.io.IOException: Can't write [C:\Users\ACERNRC\Desktop\WORK\woo\woo_1\FashionsNrc\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [C:\Users\ACERNRC.gradle\caches\transforms-1\files-1.1\Wooc...
simi k b
1

votes
1

answer
924

Views

Android Studio 3.0.1 - Getting AAPT2 errors

So I am kinda new with making apps in Android Studio. I want to make this personal project, an app timetable of incoming buses for my city transit. When I started the project, the app would sucessfully load without errors, but lately I've been getting these AAPT2 exception errors and failings with m...
Amic
1

votes
1

answer
23

Views

Views in Relativelayout inside a Fragment have extra spaces

I'm working on my landscape layout which is a RelativeLayout with a CardView, two ImageViews and a simple TextView. On the preview in Android Studio it looks exactly like what I want but if I test it on my real device it looks strange because there are always extra spaces. This is the preview in And...
Deno Agüero
1

votes
2

answer
256

Views

Kapt exception when creating XML file

I am working in Kotlin on Android Studio. The project compile and works perfectly, but then when I try to create a new XML file, I keep getting a kapt exception 'Exception while annotation processing'. I try to create XML file by right click on res folder -> New -> Layout Resource File, and I also t...
Elynad
0

votes
1

answer
19

Views

How to dynamically replace string of TextView inside an <include> layout?

I have 10 different xml files and each of them will also use to use 1 xml file (so instead of copying and pasting the same content, I am using to add in that content from one file to each of those layouts). The content of that file has a TextView with 'android:text' that takes in strings from the...
Jay L
-1

votes
0

answer
11

Views

How to create login (MySQL) with multiple types of user in Android

I want to create login activity with multiple types of user. This login is connected with MySQL. The multiple choice is 'Reviewer' and 'Non-Reviewer'. Now I use Spinner and the values I call from string.xml. At the table 'user', there are some column such as 'username', 'password', and 'usertype'. E...
Wan Dila
0

votes
0

answer
3

Views

Is there a shorter workaround to reduce the number of AsyncTask in my Room DataBase Repository

I am trying to simplify the number of lines for my codes in the repository. Currently there is a lot of repetition in my codes. Many of the solutions online only involves inserting once into the table. I need to do insert() on many tables. I want to reduce the repetition for writing the same inner A...
Peter
0

votes
0

answer
10

Views

Why does Toast skip to last element within this loop?

I'm practicing using Android Studio, so I'm making a very basic program where the user clicks on a button, and a Toast message will go through each element within an array tied to that button using a for loop. For some reason, this only shows me the last element within the array. I've tested to see...
HoneybunHero
0

votes
0

answer
8

Views

Can't see a toolbar in the preview or design tabs

enter image description hereHi! I was about to design my toolbar for my latest app and I couldn't see it. It is visible when I launch my app on my android smartphone but not in the ide. Please help. Thanks!
adrish_mitra
1

votes
0

answer
8

Views

How do I turn on assertions for Android Studio with Kotlin

I cannot get assert to work under Android Studio 3.3.2 using Kotlin (Windows 10). I've read/researched a bunch and this is what I've done: Help | Edit Custom VM Options... at which point I was presented with a dialog saying File 'C:\Users\me\.AndroidStudio3.3\config\studio64.exe.vmoptions' does not...
Free Dorfman
1

votes
0

answer
18

Views

Wizard accessing previously deleted SDK folder

I'm trying to set up my Android Studio environment on my Ubuntu through the Wizard but it doesn't go further than trying to download the 'android_m2repository_r47.zip' folder. I had a previous session with Android Studio but deleted it meanwhile (and the SDK folder as well). Now I'm trying to instal...
tmvaz
1

votes
0

answer
55

Views

Couldn't find the build.properties file

I've recently linked gradle to the android.mk file in order to migrate from ndkcompile.But I couldn't make the last step of the process which was to disable the ndkcompile by navigating to the buil.properties which I couldn't find anywhere in Android Studio. This is my gradle build file :apply plugi...
Zakaria Bennane
1

votes
0

answer
346

Views

White screen when launching android emulator

When I launch my android emulator, in addition to the white screen it gives me this error: Emulator: qemu-system-i386.exe: Unable to open C:\Users\user.android\avd\Nexus_5X_API_26.avd\data\misc\pstore\pstore.bin: Permission denied The Emulator looks like this:
Mahmoud Abu Elheja
1

votes
0

answer
1.3k

Views

Missing constraints in Constraintlayout And hardcoded text

Im Noob programmer with android studio, I added button (or anything) to my design will show below error missing constraints in Constraintlayout And Hardcoded text I searched this topic in stackoverflow, but can't luck.
Miladvp
1

votes
2

answer
61

Views
1

votes
1

answer
213

Views

java.lang.IllegalArgumentException occurs upon retrieving external storage path android

I have implemented an android application which uses device camera to take images. I want to save the images to the external storage directory of device. I have been following the instructions given here in android documentation to achieve this. Here is my code: I have added the provider in manifest...
bhavana
1

votes
1

answer
693

Views

Textview properties not showing in android studio

I'm a beginner and I'm new to android development. I can't modify the textview properties, even after manually modifying in XML it's not showing up. I tried clicking the blue arrows it's not showing anything. This is how it currently looks like: I want the properties to show like this: Edit1: Xml C...
datacrusader
1

votes
1

answer
611

Views

Android Studio doesn't open after updating it to 3.0

I just installed Android Studio today. I installed the most recent version and then I applied the new 3.0 update manually, but it won't start... Error Message that I get: Internal error. Please report to https://code.google.com/p/android/issues java.lang.RuntimeException: com.intellij.ide.plugins.Pl...
charparodar
1

votes
0

answer
38

Views

DevOps solution for Android Studio updates

we have a large team of developers using Android Studio for developing Android Apps. Problem that we face is: For each new update, each developer updates through the Android Studio's Update Manager. Due to update sizes in x100 MBs or even GBs, it quickly adds up for so many developers. Is there a wa...
ameyazing
1

votes
0

answer
19

Views

Fragments that can be swiped in 4 directions

So basically I want to create an app that when I swipe left it shows a fragment and so as up down and right. Here is the code I have so far @Override public Fragment getItem(int position) { switch (position){ case 0: return ChatFragment.create(); case 1: return EmptyFragment.create(); case 2: return...
KristoferH
1

votes
1

answer
412

Views

adb: CreateFileW 'null' failed: The system cannot find the specified file

I installed Android Studio 3.0.1 in Windows 10 and it turns out that I can not launch any emulator, as much as you create these emulators, these are not displayed and I get the following error: I have verified that the ADB is not running and that other processes also listen to port 5037 as other use...
Oscar Abuawad
1

votes
0

answer
356

Views

how to make the onesignal push notification url open in the same android web view

i create and android webview to show my website and i connect onesignal push notification to it but every time i send a url with push notification it ask me to view it on google chrome or other browser not my android web view @Override protected void onCreate(Bundle savedInstanceState) { super.onCr...
median
1

votes
1

answer
552

Views

Why the Active Android Library reports this error = Before Android 4.1, … would have incorrectly overridden the package-private method in Drawable

I use the Active Android Library, and every time I launch it, it will be displayed to me in the Logcat (Android Studio) , Error Type = Warning Picture of the complete program error I also want to know if this problem does not cause me a problem like Force Stop The first two lines of program error (W...
Majid ahmadi
1

votes
0

answer
1.4k

Views

Android Studio 3.1 Canary 6 build failed

After updating my canary 5 to 6, my projects syncs but won't build, both on Windows 10 and Mac iOS 10.13.2 android { compileSdkVersion 27 defaultConfig { vectorDrawables.useSupportLibrary = true applicationId 'com.test' minSdkVersion 19 targetSdkVersion 27 versionCode 1 versionName '1.0' } buildType...
AeonDave
1

votes
0

answer
44

Views

Android studio LWP

I'm new developer (NOOB) and right now I'm making a simple live wallpaper and its finished however I'd like to use mp4 instead of gif, Is that even possible? and how can I change canvas.scale so that it fits any screen automatically? here's my java code: package com.mahdiharaji.watchdogsLWP; import...
Mahdi Haraji
1

votes
1

answer
291

Views

In android Studio Image is not showing in preview

I'm using ImageView in AndroidStudio but AndroidStudio doesn't show my image in the preview. Please find the below screenshot:
faizal mohammed
1

votes
1

answer
1.6k

Views

Gradle sync failed: Could not connect to server

In my android studio 3.0 i am continuously getting this error - Cannot start internal HTTP server. Git integration, JavaScript debugger and LiveEdit may operate with errors. Please check your firewall settings and restart Android Studio. after this my gradle sync also failed stating the error - Gra...
Gaurav Sahu
1

votes
1

answer
106

Views

The new Android Update doesn't consist of SDK Manager

I had recently updated my Android Studio to newer version (3.1 Canary 7) and tried to run my older programs in the IDE, but this time there was an error stating that the SDK Manager is missing. I am semi-intermediate in this field and I am not able to understand the problem. in earlier versions it u...
ColonP
1

votes
2

answer
47

Views

How to integrate a java project into an existing Android Studios project

I'm building my first Android app and I found a java project on github that I would like to integrate with my app. Is it possible for me to manually add the java files to my android project directory at app -> java -> com.example.appname The src -> main directory of the java client has a nested fil...
Omega Collision
1

votes
0

answer
146

Views

Android studio is stuck while downloading SDKs

Today I had opened Android Studio for the first time and while it was downloading SDK it was stuck on downloading the first SDK. Hence it was looping this url continuously. I waited a lot but the screen or the downloading process did not advance. Screenshot
DMion
1

votes
0

answer
22

Views

How to export library to Jar which include some jcenter library like this compile 'com.lzy.net:okgo:3.0.4'

task makeJar(type: Copy) { delete 'build/libs/ble_sdk.jar' from('build/intermediates/bundles/release/') into('build/libs/') include('classes.jar') rename('classes.jar', 'ble_sdk.jar') } makeJar.dependsOn(build) and i want to include some jcenter libraries how to Embedded them?? help
Dalai_Lama
1

votes
0

answer
281

Views

swipe to delete from recyclerview using realm database

i have been trying to implement the swipe to delete functionality for a list i have which is done by a recyclerview, right now i need to find a way to delete the item from the realm database using only the position at the recyclerview here's the code ItemTouchHelper.SimpleCallback simpleCallback=new...
1

votes
1

answer
112

Views

Android Studio - Space in user name causing crashes, NDK is not installed to this directory

I am trying to develop an android application with SDL and have been following this tutorial. http://lazyfoo.net/tutorials/SDL/52_hello_mobile/android_windows/index.php I followed this tutorial on my laptop earlier and actually completed the tutorial successfully until my laptop stopped working due...
Harpo
1

votes
0

answer
47

Views

android studio does not show my theme right

I have a problem when running android studio! It's not an error, rather an inconvenient. I did some projects in the past and when I open them now, my theme in the preview looks different, even though when i did the project the preview looked fine. Either my title bar is missing, or there is a mismat...
Maria Alexandra
1

votes
2

answer
406

Views

android studio 3.0.1 and kotlin v1.2.10-release-Studio3.0-1 got issue

I am using android studio 3.0.1 and I was going to use Kotlin. I wrote some simple code and when application runs the android studio shows me below error: Error:Gradle: A problem occurred configuring root project 'Firstapp1'. Could not resolve all files for configuration ':classpath'. Could not reso...
pouria barani

View additional questions