You need to specify correct JAVA version.1)Android 4.3 build error
Android guide says that following JAVA versions are needed for specific build.2)Establishing a Build Environment
- Java 7: for Lollipop through Marshmallow
- Java 6: for Gingerbread through KitKat
- Java 5: for Cupcake through Froyo
Try following commands
1 2 3 |
$ sudo update-alternatives --config java $ sudo update-alternatives --config javac $ sudo update-alternatives --config javadoc |
References