hi,

Can u be a little more specific on how to drop * ANDROID_JAVA_HOME. *I'm 
facing the following error

[  0% 1/27647] Yacc: aidl <= system/tools/aidl/aidl_language_y.yy
FAILED: /bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d  
--defines=out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.h
 
-o 
out/host/linux-x86/obj/STATIC_LIBRARIES/libaidl-common_intermediates/aidl_language_y.cpp
 
system/tools/aidl/aidl_language_y.yy"
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1



On Tuesday, September 6, 2016 at 7:44:32 PM UTC+5:30, James Muir wrote:
>
> argh... I found the problem:  me :-)
>
> I had the variable ANDROID_JAVA_HOME set in my bashrc file.  This was a 
> remnant of kitkat development and so it pointed to an oracle java-6 jdk 
> directory on my machine :-(
>
> "showcommands" was helpful in uncovering this silliness:
>
> cd external/doclava && mm -B USE_NINJA=false showcommands
>
>
> After dropping the definition of ANDROID_JAVA_HOME, I am able to build 
> successfully.
>
> -James M
>
> On Sunday, September 4, 2016 at 1:11:28 PM UTC-4, James Muir wrote:
>>
>> First, thanks to Bill Yi and team for publishing the N sources.
>>
>> I have a tree synced to the tag *android-7.0.0_r1* on an ubuntu 16.04 
>> machine, but am hitting the following build error:
>>
>> external/doclava/src/com/google/doclava/Converter.java:407: error: cannot 
>> find symbol
>>                     m.isAbstract(), m.isSynchronized(), m.isNative(), 
>> m.isDefault(), true,
>>                                                                        ^
>>   symbol:   method isDefault()
>>   location: variable m of type AnnotationTypeElementDoc
>> external/doclava/src/com/google/doclava/Converter.java:429: error: cannot 
>> find symbol
>>                     m.isAbstract(), m.isSynchronized(), m.isNative(), 
>> m.isDefault(), false,
>>                                                                        ^
>>   symbol:   method isDefault()
>>   location: variable m of type MethodDoc
>> Note: Some input files use unchecked or unsafe operations.
>> Note: Recompile with -Xlint:unchecked for details.
>> 2 errors
>> ninja: build stopped: subcommand failed.
>> build/core/ninja.mk:148: recipe for target 'ninja_wrapper' failed
>> make: *** [ninja_wrapper] Error 1
>> make: Leaving directory '/home/jamuir/git/android-7.0-platform'
>>
>>
>> I can reproduce the error this like this:  "cd external/doclava && mm -B".
>>
>> This seems like a java incompatibility issue.  I am using openjdk-8 (I 
>> have not tried oracle-java-8).
>>
>> Here is my java version:
>>
>> external/doclava$ java -version
>> openjdk version "1.8.0_91"
>> OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
>> OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
>>
>>
>> Does anyone have a solution for this?
>>
>> What version of openjdk-8 were you able to use to successfully 
>> compile android-7.0.0_r1 ?
>>
>> Note that I tried adding casts, ((MethodInfo)m).isDefault(), but that 
>> causes another error later on in the build.
>>
>> -James M
>>
>>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to