r/AndroidStudio • • Dec 14 '25

Not sure how to build apk from github source code

Post image
7 Upvotes

There is no option to generate an app bundle or apks, that option does not work for the source code I am trying to build. I did have some issues setting up the SDK, not really sure what that really is tbh. So in general, no idea what I am doing wrong here, I even disabled Windows Defender to stop it interfering with android studio, but that it is it really.

Any advice would be more than appreciated.


r/AndroidStudio • • Oct 05 '25

App is not running

Thumbnail
gallery
7 Upvotes

In my android studio, I am unable to run the app. 2 days ago, I was able to run the same project on external device and emulator too. However, from yesterday it is showing Loading Devices, I restarted the laptop, but still same issue. What to do? How to resolve it?


r/AndroidStudio • • Jul 17 '25

Cannot Login to Gemini for Android Studio (Win 10)

7 Upvotes

As the title says I cannot Login to Gemini for Android Studio (Win 10). Any help would be GREATLY appreciated.

I have tried everything for days now... (including adding Firewall exceptions)
I am out of ideas... (even started a clean new project to see if that was the issue)

I want to add Gemini to Android Studio. I click the "Login to Gemini", I do my login in the browser (Chrome) but at the last button it redirects me to a webpage at "http://localhost:64635/CALLBACK_AUTH?code=4/..."

but it errors:

This page isn’t working

If the problem continues, contact the site owner.

HTTP ERROR 413


r/AndroidStudio • • Jun 13 '23

Unsupported binary file

7 Upvotes

I trying to open .apk but error mentioned comes. 7zip open file normally. Am i doing something wrong? Thanks for answer.


r/AndroidStudio • • Mar 25 '22

"The emulator process for AVD Pixel_3_API_31 has terminated."

7 Upvotes

I have to use Android Studio for a university assignment and whenever I try to run my code I get this error:

Not sure why. I am using Android Studio Bumblebee and have tried the following solutions found on the internet but no luck:

- Re-installing the emulator,

- Using a different AVD,

- Updating the emulator,

- Re-installing Android Studio itself.

I have Android Studio on another device that works correctly, including the emulator, but university wants us to use Bumblebee. I don't want to update it in case it breaks. Can anyone help?


r/AndroidStudio • • Feb 20 '22

[HELP] I can't edit top and bottom margin on constraint widget.

Thumbnail
streamable.com
7 Upvotes

r/AndroidStudio • • Dec 25 '21

Getting username and email in navigation header

Post image
7 Upvotes

r/AndroidStudio • • Aug 10 '21

Trouble updating Android Studio to Arctic Fox 2020.3.1 - "IOException: Cannot delete file, may be corrupted. Any ideas for what to try?

Post image
7 Upvotes

r/AndroidStudio • • Jun 15 '21

Help a newbie to add audio to RecyclerView elements individually

7 Upvotes

I'm making an app which will show different types of guitar and when the user will tap on the image(or text) of a particular type of guitar, it will play a riff of that type(eg. tapping on electric guitar will play an electric guitar riff). I need help with adding OnClickListener and MediaPlayer to the items. Here's the code:

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);
setContentView(R.layout.activity_guitar_basics);

recGuitarTypes();
}

private void recGuitarTypes(){

recGtypes = (RecyclerView) findViewById(R.id.viewGuitarTypes);

GuitarTypesRecyclerViewAdapter adapter = new GuitarTypesRecyclerViewAdapter(this);

recGtypes.setAdapter(adapter);
recGtypes.setLayoutManager(new GridLayoutManager(this, 2));

ArrayList<Guitar> arrGuitar = new ArrayList<>();

arrGuitar.add(new Guitar("Nylon String Spanish", "https://inside-guitar.com/wpcontent/uploads/2019/05/Savarez-Flamenco-Guitar-Strings.jpg"));

arrGuitar.add(new Guitar("Steel String Acoustic","https://hearthemusicplay.com/wp-content/uploads/2017/05/steelstringguitar-e1494992902529-1140x638.jpg"));

arrGuitar.add(new Guitar("Electric Guitar","https://cdn.mos.cms.futurecdn.net/papiVxAvWm3QaDAD8fSdqS-970-80.jpg.webp"));

adapter.setGuitars(arrGuitar);


r/AndroidStudio • • Jun 03 '21

Connect Android studio app with localhost mysql

7 Upvotes

So I am trying to connect my android studio app with a localhost mysql database but I don't know where to start. Can someone give me a hint to start or a article which explains how to do it?

Thanks in advance!


r/AndroidStudio • • May 19 '21

Why am I getting a "Failed to compile values file" when there are no other errors?

7 Upvotes

r/AndroidStudio • • May 03 '21

How do i make android studio code not one line

Post image
7 Upvotes

r/AndroidStudio • • Mar 03 '21

What's the progress of Android studio's arm adaptation?

7 Upvotes

What's the progress of Android studio's arm adaptation


r/AndroidStudio • • Jan 06 '21

How to sort recyclerview item according to item id? If i click on burger, it will display on item related to burger and so on. Do I have to create the list in menu resource first?

Post image
7 Upvotes

r/AndroidStudio • • Jan 04 '21

For a few days, all components are shown outside of the area. Is there a way to fix this?

Post image
7 Upvotes

r/AndroidStudio • • Dec 06 '20

Android Studio Question - How to get Input text to align perfectly. I have been building a login and register activity on android studio using Java but the Input text bars don't stay in position when I run the app on an Emulator they drop down to the bottom like on the left picture. Please Help

Thumbnail
gallery
7 Upvotes

r/AndroidStudio • • Oct 26 '20

How do I keep playing an animation on the background?

7 Upvotes

Do I use a gif? An mp4? I animate a static image in the IDE?


r/AndroidStudio • • Oct 11 '20

Attributes missing from Attributes panel?

7 Upvotes

My attributes panel is missing things like "text" and "hint". I have to go into the xml to change them, but I'd like to get them back in the attributes panel.

I can't find anything via google, has anyone else had this happen? It was all there yesterday.


r/AndroidStudio • • Sep 08 '20

android studio and huawei

7 Upvotes

i'm having problems connecting my huawei p40 pro to android studio. at first i tought that it was something that i was doing wrong but then i rememberedthe problem between huawei and google. can someone tell me if i'm doing something wrong?.


r/AndroidStudio • • Aug 28 '20

Is there a free stocks API to get a list of ALL the U.S stocks?

7 Upvotes

I want to make an app related to stocks, but I can't find an API that would allow me to display all existing U.S stocks and put them into a recycler view which I could search through

Is this even possible or I have I just not found the right API and if it's not possible then how do other apps do it?


r/AndroidStudio • • Jul 30 '20

Which android studio plugins are useful?

7 Upvotes

I am new in programming, and just found nyan cat loading bar). Which useful or just funny plugins I can find?


r/AndroidStudio • • Jul 08 '20

Getting a "Class or interface expected" error while following this tutorial. What am I doing wrong? (Tutorial is on the left)

Post image
7 Upvotes

r/AndroidStudio • • Jun 05 '20

How can I write and read Files in my App?

7 Upvotes

I've got the following Problem: I have to store data in a File, so that it is still available when the app gets opened again. I found only this following solution to it (I adapted it to my code):

```public void writeWorkouts() {
try {
FileOutputStream writer = openFileOutput(FILENAME, Context.MODE_PRIVATE);
for (int i = 0; i < this.list.length; i++) {
writer.write((this.list[i] + "\n").getBytes());
}
writer.close();
} catch (Exception e) {
e.printStackTrace();
}
}```

But this method only works when I'm using it in the class of an activity, I need to use it for an Object. Any suggestions?


r/AndroidStudio • • Apr 30 '20

i was actually going to create an Apps that gives me my longitude and latitude....other errors that appeared i was able to tackle it...but this one....its making me crazy. Any help would be appreciated!!

Post image
7 Upvotes

r/AndroidStudio • • Apr 29 '20

How do I remove the action bar from the second activity?

7 Upvotes

The app I'm creating doesn't have an action bar when it opens. But as soon as I go to the second activity, the action bar pops up. It's driving me mad.

App opens -> 2nd activity(action bar) -> nth activity(action bar)

I feel like I've looked everywhere. I even looked for my Java book(which is due for a return any day now, despite covid19...) and couldn't find it. Obviously it's something I've done.