首页 > 编程语言 > 详细

AttributeError: 'JNIFromJavaP' object has no attribute 'fully_qualified_class'

时间:2016-01-20 12:38:31      阅读:707      评论:0      收藏:0      [点我收藏+]

http://android.2317887.n4.nabble.com/AttributeError-JNIFromJavaP-object-has-no-attribute-fully-qualified-class-td288152.html

 

Re: AttributeError: ‘JNIFromJavaP‘ object has no attribute ‘fully_qualified_class‘

技术分享
1 post
In reply to this post by Md Masuqur Rahman
在 2015年1月29日星期四 UTC+8上午1:54:34,Md Masuqur Rahman写道:

> Facing build problem of android-5.0.2_r1 version
>
> Following are my PC Configuration:
>
> - Fedora 20
> - openjdk-1.7.0.75
> - Python 2.7.7
>
> Please help me to find out the problem.
>
> During build its shows Following Error:
>
> target thumb C++: gpu_command_buffer_common_gyp <= external/chromium_org/gpu/command_buffer/common/gles2_cmd_format.cc
> Traceback (most recent call last):
>   File "../../base/android/jni_generator/jni_generator.py", line 1511, in <module>
>     sys.exit(main(sys.argv))
>   File "../../base/android/jni_generator/jni_generator.py", line 1507, in main
>     GenerateJNIHeader(input_file, output_file, options)
>   File "../../base/android/jni_generator/jni_generator.py", line 1392, in GenerateJNIHeader
>     jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
>   File "../../base/android/jni_generator/jni_generator.py", line 643, in CreateFromClass
>     jni_from_javap = JNIFromJavaP(stdout.split(‘\n‘), options)
>   File "../../base/android/jni_generator/jni_generator.py", line 568, in __init__
>     self.fully_qualified_class = self.fully_qualified_class.replace(‘.‘, ‘/‘)
> AttributeError: ‘JNIFromJavaP‘ object has no attribute ‘fully_qualified_class‘
> make: *** [out/target/product/generic/obj/GYP/shared_intermediates/android_webview/jni/CancellationSignal_jni.h] Error 1
> make: *** Waiting for unfinished jobs....
> Traceback (most recent call last):
>   File "../../base/android/jni_generator/jni_generator.py", line 1511, in <module>
>     sys.exit(main(sys.argv))
>   File "../../base/android/jni_generator/jni_generator.py", line 1507, in main
>     GenerateJNIHeader(input_file, output_file, options)
>   File "../../base/android/jni_generator/jni_generator.py", line 1392, in GenerateJNIHeader
>     jni_from_javap = JNIFromJavaP.CreateFromClass(input_file, options)
>   File "../../base/android/jni_generator/jni_generator.py", line 643, in CreateFromClass
>     jni_from_javap = JNIFromJavaP(stdout.split(‘\n‘), options)
>   File "../../base/android/jni_generator/jni_generator.py", line 568, in __init__
>     self.fully_qualified_class = self.fully_qualified_class.replace(‘.‘, ‘/‘)
> AttributeError: ‘JNIFromJavaP‘ object has no attribute ‘fully_qualified_class‘
> make: *** [out/target/product/generic/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1
>
>
> Thanks
> Md Masuqur Rahman

If your environment variable CLASSPATH is set, the javap command would try to look in the CLASSPATH instead of the current dir. Thus no class is found.
You may try to unset CLASSPATH and build again.

--
--

 

AttributeError: 'JNIFromJavaP' object has no attribute 'fully_qualified_class'

原文:http://www.cnblogs.com/lake-of-embedded-system/p/5144585.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!