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.
android-studio
39,267
questions with no upvoted or accepted answers
42
votes
1
answer
970
views
Android Studio 3.4 dependencies suggestions - make it to not show alpha/beta versions
In Android Studio 3.4 added new window suggestions in Project Structure which suggest update gradle dependencies to latest version.
Is it possible to show only final version there without alpha/beta ...
37
votes
2
answers
1k
views
Android Studio shows C++ file icon on every file
After updating Android Studio to version 4.1 every file icon in the project is shown as a C++ icon. Is there any way to repair this? This is how it looks:
You can see every file, no matter what ...
29
votes
1
answer
2k
views
How to stop AndroidStudio from overwriting .idea/codeStyles/Project.xml
In our project, we have committed .idea/codeStyles/Project.xml to source control with the goal of enforcing a common style among all contributors to the project without affecting the style of other ...
29
votes
1
answer
2k
views
Attach sources to kotlin library project don't show up in AS
I want to attach the sources to an kotlin library project and it looks I succeeded as I have the source-jars now in here:
https://jitpack.io/com/github/walleth/kethereum/bip44/0.21/
the version ...
28
votes
0
answers
2k
views
Android Studio not suggesting Firebase BoM new versions
I am using firebase in my android app, and I have included several firebase client libraries in my build.gradle, each with its own version.
When a new version of each library was available, Android ...
28
votes
1
answer
5k
views
Problems reading data from Binary store in /tmp/gradle7963227675482339513.bin (exist: true)
Gradle refresh failed error while trying to import an old project into the android studio.
How can this be resolved? Thanks.
Error:Problems reading data from Binary store in /tmp/...
28
votes
0
answers
5k
views
Any way automatically allow the MTP connection approval request upon USB connection?
Whenever I connect the phone to my PC via USB, the phone displays a message asking me to DENY or ALLOW the MTP connection. I ALWAYS want to allow it
My device: Samsung S5
Android: 6.0.1
Is there ...
26
votes
1
answer
585
views
Android-Studio ( or IDEA in general ) refactor over multiple source sets
What is a good way to handle the problem of refactoring over multiple source sets? E.g. in different flavors - or now unit-tests and integration-tests. You can only have one active source-set that is ...
21
votes
0
answers
811
views
Using Android Studio's C++ support to build nonfree OpenCV modules
Background
Although, older versions of OpenCV (ie 2.4) allow Android projects to utilize `SIFT` functionality, the separation of that functionality into `opencv_contrib` makes the task more difficult;...
21
votes
0
answers
923
views
Android Studio GPU monitor will not work for OpenGLES2
How can I monitor the GPU usage of my OpenGLES2 app on Android?
The GPU monitor in Android Studio seems to ignore OpenGL GPU usage.
Please note that I have enabled gpu rendering profile in developer ...
21
votes
2
answers
970
views
Importing library project multiple times in Android Studio 1.3.1 causes library to disappear
I have a library project called Common that I use for functionality that is shared by my other projects, Consumer and Management. Consumer itself is also a library project that is used by other apps.
...
19
votes
1
answer
1k
views
On Android Studio, the inspection "Unused resources" doesn't work for all modules on my project
I run it this way "Menu -> Analyze -> Run Inspection by Name -> Unused resources" and I select entire project but it doesn't find any unused resources outside my main App Module. So I then run it for ...
18
votes
1
answer
919
views
Android Studio - Enable native C++ debugging in existing older project (card.io Android Source)
I am currently trying to understand how the native implementation of the card.io Android Source does work. For this purpose, it would be great to have the possibility to debug the native C++ code. ...
17
votes
0
answers
495
views
Android Studio doesn't remember passwords at "Generate Signed Bundle or APK" anymore (4.1)
This week I built release bundle 3-4 times using Android Studio and I always checked "Remember passwords".
But every time I do a new release build it asks for passwords so "Remember ...
17
votes
1
answer
498
views
Debugger breakpoint hitting on the same line in file but of the different build variant while using lambdas
We have many different builds, flavors and dimensions in our project. But after updating to Android Studio 3.5 we noticed a strange behavior that when we create a breakpoint in some lambda of our file ...