How do i use Android Studio?

Previous topic - Next topic


Hi there, I was super excited to try out android studio, when I compiled to android it told me to install android studio so I did. I created a simple hello world program and when I compiled for android it started up android studio, started updating some stuff and after a long time of waiting I just got errors.

Ive tried a lot to make this work but nothing seems to work.
Is there maybe a tutorial or guide on how to use android studio?

There are two ways to write error-free programs; only the third one works.
(Alan J. Perlis)


Check the readme in the android studio folder created by GLB after you compile.
Also the Android Studio SDK Manager needs to have SDKs and libraries installed - you can find more about those online...

There are certain things you need to change and others you need to leave as is.

build .gradle at the app level >

  // GLBASIC_USER_NOTE versionCode, versionNumber, target SDK
        minSdkVersion 23
        targetSdkVersion 29

androidmanifest.xml - make sure you have it setup correctly if you edited it.

Below image is my SDK tools setup.

Speccy-48k, Speccy-128k, Amigas, PCs


Hi. I can't compile Android with last version Android Studio 3.6.3. Getting below error:
Do you have any advice on how to proceed?
Below image is my SDK tools setup.
Version Java java 1.6.0-25
Thank you

"ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve androidx.appcompat:appcompat:1.1.0.
Disable offline mode and sync project
Show Details
Affected Modules: app"


I will join Your question. What beside Android Studio is currently needed to compile for Android - like specific JDK/Java version or some other tools (as for other tools that I checked recently they for example advised to use older Python versions and so on) are needed? Or I missing some tutorial that's available here on forum and it's up-to date..
Check my source code editor for GLBasic - link Update: 20.04.2020


Java 1.6.0-25 and any other sun java is not required at all as Android Studio uses OpenSDK version of Java instead, which is included with Android Studio and installed by default. So you dont need to use any of the official java version at all!

Also if Android Studio want you to update project settings to newer settings in a project, then the project can cause fails to compile completly.

But if that was happens, its very easy to revert it again:

in File/Project Structure/Project

Make sure Android Grandle Plugin uses version 3.4.1 and Grandle version uses 5.1.1. We can uses a bit newer version here, but those versions should works and still works nicely today (has just released PowerUp Elevation today)!

Also im do heard androidx.appcompat:appcompat:1.1.0 is depreacted? howover line is still there and should not cause any trouble throught when that grandle versions above is using.

After that, open the grandle file again and sync. Then any missing sdk, cmake and ndk that is required should now been downloaded automatic. This take some time.

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 -


Also, make sure to sync project before builds - and might need a clean project with the new update.
Speccy-48k, Speccy-128k, Amigas, PCs


I'm trying to build for Android and as far as I'm aware I've installed everything I need to.

Android Studio just comes up with configuring projects and doesn't get past that no matter how long I leave it. It also seems to be using my network connection constantly for some reason?

Any ideas guys?


I would like to help you if only Android Studio works for me


Well I got a apk compiled but it doesn't actually work it says it has a fatal error. Probably a schoolboy error as I've never used android studio before and with it was simple still like the old days.

Quotejava.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.tcksoft.blitz/}: java.lang.ClassNotFoundException: Didn't find class "" on path: DexPathList[[zip file "/data/app/com.tcksoft.blitz-8d5YTa9SdmINaA_Ah0AnzA==/base.apk"]
.... yaddayaddayadda.

No default activity? How has it/me managed that and any idea how to fix it please? Cheers.


I've got it building and running on my phone, but no sound? I'm using wav files but nothing is playing. The graphics are working but no sound.

Do I have to initialise the mixer or something? I don't have a clue.



For v16 sound should be working just fine.

I have been using this even when SETCURRENTDIR is used.

Code (glbasic) Select

Speccy-48k, Speccy-128k, Amigas, PCs


Thanks I will give that a try and fingers crossed.

It's rather frustrating. To say the least.


its a issue im fixed and gernot broke it again (etc did not used it). howover you can uses GETCURRENTDIR() what ever system throught.

Android is also not windows at all and there can been some frustation parts as well.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 -


also you should NOT update the  grandle version when you asked to that, that can break your project. so when its ask it, press no to this project.

Installing AS can been quite annoying until get anything running for the first project.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 -