

dx -dex -output=$PROJ/bin/x $PROJ/objīut if you use external libraries, do rather. We have to translate them in a file called “x” which will be read by the dalvik Android runtime: cd /opt/android-sdk/build-tools/26.0.1/. class files are in obj folder, but Android can’t read them. If you have use an external, add it the classpath: javac -d obj -classpath "src:libs/.jar" -bootclasspath /opt/android-sdk/platforms/android-19/android.jar src/com/example/helloandroid/*.java java files: cd /path/to/AndroidHello javac -d obj -classpath src -bootclasspath /opt/android-sdk/platforms/android-19/android.jar src/com/example/helloandroid/*.java You can find yours in a location like android-sdk/platforms/android-/android.jar -I tells aapt where the android.jar is.-S specifies where is the res directory with the drawables, layouts, etc.Saying -J src will create a file like src/com/example/helloandroid/R.java

