java.lang.UnsupportedClassVersionError: com/google/doclava/Doclava : Unsupported major.minor version 51.0 android build -


i trying build own aosp google source. follwed steps mentioned in google documents , able build , flash device images successfully. however, tried building again after making changes (basically added logs play around it). build errored out. tried make again, said javac 1.6 found. required javac 1.7. followed answers particular problem using following command:

 update-alternatives --config javac there 2 choices alternative javac (providing /usr/bin/javac).    selection    path                                         priority   status ------------------------------------------------------------   0            /usr/lib/jvm/java-7-openjdk-amd64/bin/javac   1051      auto mode * 1            /usr/lib/jvm/j2sdk1.6-oracle/bin/javac        315       manual mode   2            /usr/lib/jvm/java-7-openjdk-amd64/bin/javac   1051      manual mode 

i selected option 0. tried make again. time failed following error:

java.lang.unsupportedclassversionerror: com/google/doclava/doclava : unsupported major.minor version 51.0 android build 

after going through answers question(i found asked many times), found because complie time(higher version) , run time(lower version) jdk dont match , should recompile using java 1.7. how do android build? surprized why got error "javac 1.6 found. required javac 1.7." created build using java 1.6.

in case it's not problem javac, javadoc. check version: javadoc -j-version (yes, it's weird).

so, have use:

update-alternatives --config javadoc 

Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -