Newest 'android-studio' Questions - Stack Overflow

Questions tagged [android-studio]

Use for questions about using Android Studio, an official IDE by Google targeted at Android app development. Do NOT use for questions about programming for Android in general; instead use the Android tag.

-1
votes
0answers
16 views

Manifest merger failed Attribute application@appComponentFactory [duplicate]

I'm a bit new to Android, just trying to get it up and running :) I'm not quite sure what is wrong with this support module Manifest merger failed : Attribute application@appComponentFactory value=(...
0
votes
0answers
8 views

Display the KML file from Android device memory on the map using Osmdriod

I saw the Osmdroid tutorials and I could use it to show a KML file from a web address on the map. But now I want to display a KML file inside the Android device on the map. I tried several methods. I ...
0
votes
2answers
18 views

InvalidUserDataException: Cannot change strategy of configuration ':app:debugRuntimeClasspath' after it has been resolved

I can not emulate my application. Whenever I click on "run", I get the following message. gradle project sync failed. Please fix your project and try again. I researched several topics and tried to ...
-1
votes
1answer
18 views

Use icon to run Android Studio - Linux Mint [on hold]

When I want to run Android Studio I must go to terminal from androidstudio/bin then type ./studio.sh. How can I use icon to run Android Studio in my desktop ?
-1
votes
0answers
24 views

mergeDebugResources issue in Android

I have just downloaded android studio and after downloading all the necessary tools , I tried to run the default android program for 'HappyBirthday' and I found the Run Build failed. when I clicked on ...
-1
votes
0answers
13 views

IntelliSense Not Predicting Log.d as I Type in Android Studio

When I first downloaded and started using Android Studio, I remember IntelliSense predicting Log.d as I typed and would allow me to tab-complete it in the format Log.d(TAG, "My Debug Message"); but ...
-3
votes
0answers
18 views

i can't run my application android studio (problem)

FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:mergeDebugResources'. -1 Try: Run with --stacktrace option to get the stack trace. Run with --info or --...
0
votes
0answers
19 views

Problem with Hot Reload in android studio

Hot Reload in my android studio be disabled, deselected, inactive, not clickable or not proper workable. I don't know why..while I have tried to delete and reistall all component ,kit and sdk but ...
0
votes
0answers
14 views

Android studio is not finding any registered gradle file to compile

This issue occurred yesterday, after making couple of projects i suddenly noticed that in the debugging/run section i can't find any registered gradle file anymore as you can see in the picture below :...
-4
votes
0answers
9 views

Emulator android studio on lenovo thinkpad t430

does the Lenovo ThinkPad T430 laptop use the Android Studio emulator, then how do you set it up? I have trouble using the android studio emualtor ...
0
votes
0answers
29 views

Building a c++ library using CMake in Android Studio

I built this C++ library using CMake 3.10.2 in Ubuntu 18.04 and it was built successfully. I'm trying to build it using the same CMakeLists.txt and folder structure in Android Studio which is also ...
0
votes
0answers
12 views

How to use my custom-built library with “*.aar” extension in react native project

I have a library in android studio with *.arr extension. I create a react-native project and add this library to android studio. It added to android studio but how can I import it and use it in my ...
1
vote
0answers
24 views

How to enable layout decorations (e.g. Actionbar) in AndroidStudio xml-preview?

I'm working on a small android-project, and I want to show the action bar in the XML-preview. Like this: I've already done some research and found this question: Default toolbar and status bar not ...
-2
votes
0answers
12 views

My telegram app runs using android studio, but gets OutOfMemoryError (1040KB stack Size) pthread_create error when i install and run using apk

I have created a telegram android application using it's open-source code, and it runs fine when i run it using Android studio, but i get an Out Of Memory Error (1040KB Stack Size) ...
1
vote
0answers
17 views

Gradle build failed : Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory()

When I use the gradle clean command, I get an error. It has been good before. I dont know what causes the following error. When I use android studio, it is normal.I will get an error with the command ...
0
votes
0answers
7 views

Can't able to move any objects in any layout in android studios 3.4.1

i am new to android programming and stuck with layouts. Whenever i drag and drop any object in relative layout i go to top left corner of layout. I tried this with linear layout and same thing ...
0
votes
0answers
5 views

How to use the kotlin compiler in command line which comes with Android Studio?

I have Android studio version 3.4.1. I am able to build Android apps with the Kotlin language. I have heard that we can use Kotlin for creating standalone programs other than building android apps. ...
-2
votes
2answers
23 views

How do i make my xml layout have a list look? [on hold]

I am making an XML layout that should look like this: but I am not sure what layout and views to use, would the different sections be a image button that lead to its relevant section or how would ...
-1
votes
0answers
9 views

Gmaps does not work on other cell phones, only on mine

I'm doing an application in android studio connected the api of gMaps and on my cell phone it runs fine, but when I run it on another cell phone it does not detect me when the current location on the ...
1
vote
0answers
40 views

Cannot run project in Android Studio 3.4.1 on Samsung Devices

I am unable to run a project on my Samsung device from Android Studio 3.4.1. Studio is giving me the following error message in a dialog box Installation failed with message 'cmd package install-...
0
votes
1answer
19 views

Don't have the “include navigation controller” option when making a new project in android studio 3.4.1

When am creating a new Android Studio project, I do not have the option to "include navigation controller" as shown in this tutorial image. I'm using the Linux ubuntu 18.04 with 3.4.1 version of ...
1
vote
0answers
24 views

Error while setting up new libGDX project(gradle problem)

I am just generating a new libGDX project in the libGDX project generator. It shows me this error: .............................................................................. Generating app in ...
-4
votes
0answers
16 views

Retrieve picture from database and create a cardview [on hold]

I want to do something like when i add a picture in firebase database, a cardview is created with some text and the same picture uploaded to database. For example, i have one cardview in my app with ...
-1
votes
0answers
10 views

How to put listener on textview having textview on a custom list?

I'm not able to put listener on textview which is present on a custom list. How do I need to set it?
0
votes
0answers
8 views

Modify read-only access to library files on Android Studio

I am trying to modify only 1 class that is giving me errors with only a null check. As easy as that. How do I remove read-only access to modify it?
-1
votes
0answers
37 views

This release is not compliant with the Google Play 64-bit requirement (Android Studio)

I get an error when installing the application in the store. This release is not compliant with the Google Play 64-bit requirement The following APKs or App Bundles are available to 64-bit devices,...
0
votes
1answer
12 views

Where is the Android SDK offline documentation for frameworks beyond API level 24?

I am trying to find the Android SDK offline docs for API level 28. I have installed both the "Android SDK Platform 28" and "Sources for Android 28" using the SDK Manager, but I cannot find the ...
1
vote
3answers
33 views

How to set layout margin on Android Studio 3.4?

Trying to do this android tutorial, Drag a Plain Text (EditText) element from the Palette pane to the bottom of the layout, and add constraints to the left side of the layout, the bottom of the ...
-2
votes
0answers
31 views

Could not find gradle.jar (com.android.tools.build:gradle:3.3.0-rc02)

The run time gradle error : Could not find gradle.jar (com.android.tools.build:gradle:3.3.0-rc02). Searched in the following locations: https://dl.google.com/dl/android/maven2/com/android/tools/...
0
votes
2answers
35 views

Android Studio emulator not starting when I run the project

It was working fine until today. When I clicked run button, emulator selection tab was showing up and I could choose an emulator to try my project. But today, when I click run button, emulator ...
0
votes
0answers
30 views

App runnable in Androidstudio, but apk does not install

I'm currently developing a game on android. Everything worked fine (I ran the app on my mobile via USB and Android Studio) until I tried to export the signed .apk for the playstore. I tried ...
1
vote
0answers
16 views

Native instruments virtual device offline

I recently got native instruments and it had a virtual device that is always offline and this keeps annoying me when I am trying to run my games . I use gamemaker 1.49999. I am also using android ...
1
vote
3answers
36 views

Keep facing Process unexpectedly exit in Android Studio 3.4.1

After an update of Java facing an issue of Process unexpectedly exit while creating the build for Android. I was using Android Studio 3.3.0 and updated it also into 3.4.1 also to see any update but ...
1
vote
0answers
23 views

ERROR: UnknownPlatform: 'OSX'. Please file a ContactUs with DeveloperTools

I am facing a weird issue wherein I am trying to build a project in Android Studio on a new mac and getting an error as ERROR: UnknownPlatform: 'OSX'. Please file a ContactUs with DeveloperTools ...
0
votes
0answers
9 views

Android Studio upgrade: libpython2.7a conflict in installation area

Upgrading to: Android Studio 3.4.1 Build #AI-183.6156.11.34.5522156, built on May 1, 2019 JRE: 1.8.0_152-release-1343-b01 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.14.5 , I ...
0
votes
0answers
15 views

Android gradle configuration in the studio to store generated project file externally option

Android gradle configuration in the studio to store generated project file externally option has what function? I didn't see any change in whether I checked it or not.
0
votes
0answers
8 views

When I use the firebase-storage url, picasso loads images late. I'm pulling pictures from the database. What do you think is the reason for this?

I want slider in my HomeActivity page. My slider using Timer() code. And i use ViewPager. When I put the image links that are not in the database and the links are not created with firebase-storage, ...
-2
votes
0answers
8 views

Do I need a new Google Maps API key in an old app for the new version of Google Maps?

I have an old (2016) app with an API key for the old version of Google Maps API. Do I need to get a new API key so the old app will work with the new version of Google Maps API?
0
votes
1answer
11 views

OpenGapps using Android Studio

I am using Android Studio 3.4.1 and trying to get an Android OS that both has Google Play as well as allow rooting via adb. Seems very difficult to accomplish this task. Either I can get an image with ...
0
votes
1answer
32 views

grey line with no explanation in Java how to find the problem?

what the problem is? priceMessage doesn't show me the problem so I can fix it why it's show a grey line with no red warning? I tried to figure what's happening nothing work so what's wrong with ...
0
votes
1answer
23 views

How to check user folder in Android Studio?

I made a file on the default folder using the following code: FileOutputStream fileOutputStream = openFileOutput("data.dat",MODE_PRIVATE); fileOutputStream.write("Hakuna Matata".getBytes()); ...
-1
votes
0answers
15 views

Is there a way to Autocomplete code for External Libraries?

I was writing code in Android Studio and I wanted to know if its possible for Android Studio to auto complete the Ansynchronous Http connection using com.loopj.android:android-async-http:1.4.9 library ...
0
votes
1answer
20 views

“You need to use a different version code for your APK or Android App Bundle” No matter what version code set

I am trying to upload a new update for the beta version of my last app on google play store. I've tried several version codes, 1,2,3,29 !! But no matter what version code is set, it shows this error ...
0
votes
1answer
17 views

Android_Home is invalid according to appium-doctor

In my Macbook, I have set my android home as shown below in the .bash_profile. However, I get an error message saying the path is invalid when I run appium-doctor. I've verified that I can navigate ...
-1
votes
0answers
22 views

Non-static method 'getResources()' cannot be referenced from a static context Android Studio [duplicate]

So, i'm pretty new to Android and Java. I am trying to call the method getLanguage() in my LanguageHelper class from another fragment in the app. But i'm always getting the error "Non-static method '...
0
votes
0answers
49 views

why ttcIndex and fontvariantSetting not found in cordova build?

"dependencies": { "@angular/animations": "5.2.11", "@angular/common": "5.2.9", "@angular/compiler": "5.2.9", "@angular/compiler-cli": "5.2.9", "@angular/core": "5.2.9", "@...
0
votes
0answers
10 views

Android Studio - Group conversion of field to local variable

In my Android application, I have many "Field can be converted to a local variable" warnings. I know how to fix them manually one at a time. I thought I found a way to do this by modifying code ...
0
votes
0answers
6 views

Android Studio: Stable version's “Build” button works, but Preview release's build button does nothing

I'm trying out the Beta and Canary Android Studio builds. While the Stable version's Build button actually builds my project, the Beta and Canary releases do nothing when the Build button is pressed. ...
0
votes
1answer
19 views

Widget not displaying on Stack and there is no Ink effect on InkResponse

I am working on my first Flutter App and I have encountered two problems. - The Container widget housing my Image widget does not get displayed on the Stack widget. There is no Ink effect when ...
0
votes
0answers
19 views

How can I display 3D-Models made in Paint3D with arcore in augmented reality

I want to create simple 3D-Models in Paint3D and display them in Augmented Reality with arCore using android. But whatever model format I use there are always problem/they are not working at all. ...