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
app/src/mainis not the root directory and there is nobuild.gradlepresent.