I am trying to make an app for android, just a small little "Hello World" app to assess how it all works. I have tried on numerous occasions to get gradle to wrap the app but I just keep running into error after error after failed attempt... This is more or less the procedure that I have used on 3+ occasions:
I install android studio, jdk 17, and gradle (default install ver. 4 had to remove and wget the .deb for v8)
point JAVA_HOME:
export JAVA_HOME=/PATH/TO/JAVA
export PATH=$JAVA_HOME/bin:$PATH
make my basic app structure and starting code and verified with ai
thought gradle wrapper needed to run in project root, then learned that it needs to run in the main folder. ran gradle wrapper in .../app/src/main/
chmod +x gradlew
and then ./gradlew assembleDebug
At this point, either only default tasks are available (or a short list with nothing helpful) or a longer list that does not include assembleDebug and even when I just try to do ./gradlew build, the build fails immediately. I removed any scrap of JDK or gradle from my system so if anyone can tell me maybe where i am going wrong here I would appreciate it
it's not recommended and there will be a lot of issues if you try to create an Android application all on your own adding all the codes with package structure and what not. Go to Android Studio-> New -> New Project-> Empty Activity (for Jetpack Compose) or Empty Views Activity (for XML layout). It already comes with basic code for Hello World these days. Then you can prompt AI to make changes in your MainActivity although I'd highly recommend checking out tutorials and courses that are available to you. There are a ton in Youtube and developer.android.com also provides many tutorials.