Solution for the problem

   1. $ cd /usr/bin  
   2. $ sudo ln -s -f /usr/lib/jvm/jdk1.7.0_80/bin/javap


On Wednesday, April 23, 2014 at 3:22:52 PM UTC+9, ramesh babu Dasari wrote:
>
>
> Hi while building 4.4.2_r1 on ubuntu  i am getting following error can any 
> one help me with this.
>
>
> Gyp action: Generating JNI bindings from  
> /home/ubuntu/Ramesh/prebuilts/sdk/17/android.jar/android/view/Surface.class 
> (out/target/product/grouper/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h)
> Traceback (most recent call last):
>   File "../../base/android/jni_generator/jni_generator.py", line 1065, in 
> <module>
>     sys.exit(main(sys.argv))
>   File "../../base/android/jni_generator/jni_generator.py", line 1061, in 
> main
>     options.optimize_generation)
>   File "../../base/android/jni_generator/jni_generator.py", line 996, in 
> GenerateJNIHeader
>     jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, namespace)
>   File "../../base/android/jni_generator/jni_generator.py", line 509, in 
> CreateFromClass
>     jni_from_javap = JNIFromJavaP(stdout.split('\n'), namespace)
>   File "../../base/android/jni_generator/jni_generator.py", line 457, in 
> __init__
>     contents[1]).group('class_name')
> IndexError: list index out of range
> make: *** 
> [out/target/product/grouper/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h]
>  
> Error 1
>
> On Wednesday, December 4, 2013 10:27:59 PM UTC+5:30, Adam wrote:
>>
>> I am experiencing the following build error attempting to build target 
>> aosp-arm_eng on either android-4.4_r1 or android-4.4_1.2:
>>
>> Traceback (most recent call last):
>>   File "../../base/android/jni_generator/jni_generator.py", line 1065, in 
>> <module>
>>     sys.exit(main(sys.argv))
>>   File "../../base/android/jni_generator/jni_generator.py", line 1061, in 
>> main
>>     options.optimize_generation)
>>   File "../../base/android/jni_generator/jni_generator.py", line 996, in 
>> GenerateJNIHeader
>>     jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, namespace)
>>   File "../../base/android/jni_generator/jni_generator.py", line 507, in 
>> CreateFromClass
>>     stderr=subprocess.PIPE)
>>   File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
>>     errread, errwrite)
>>   File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
>>     raise child_exception
>> OSError: [Errno 2] No such file or directory
>> make: *** 
>> [/home/odexcide/android-4./out/target/product/generic/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h]
>>  Error 1
>> make: *** Waiting for unfinished jobs....
>>
>>
>> I can successfully build the 4.3_r1 branch and others in the same 
>> environment.  My JDK version is jdk6u45 although I also tried jdk6u35.  The 
>> file it is erroring out on doesn't exist, so I am assuming the header file 
>> doesn't get generated in the first place.  Has anyone else had this same 
>> error?
>>
>> The same error was reported here, but no resolution was posted: 
>> http://forum.xda-developers.com/showpost.php?p=47234121&postcount=870
>>
>> Thanks!
>>
>

-- 
-- 
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