0%

AS for java

Android stuido for java only,not java module
use gradle create java-application(script below) ./create.sh java-demo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# save as create.sh
if [ ! $1 ]
then
echo "No project name,please add a dir name."
else
echo "Init file $1..."
mkdir $1
cd $1
gradle init --type java-application
git init
touch .gitignore
echo -e "Ignore files:"
echo -e "build/" | tee -a .gitignore
echo "Finish build java project $1 !"
fi

android studio open as android project,edit configurations run.
settings