2015-09-06 36 views
0

我從我還沒有修修補補源建設的Android時,你得到一個錯誤,它應該採取一切手段的工作(我很肯定,我已經得到了所有的安裝了libs,正確版本的Java和Python)。錯誤消息去如下:錯誤涉及subprocess.py同時建設的Android的RK3066設備

> 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 710, in __init__ 
    errread, errwrite) 
    File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child 
    raise child_exception 
OSError: [Errno 2] No such file or directory 
make: *** [out/target/product/rk3066/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1 
make: *** Waiting for unfinished jobs.... 

我不是一個真正的專家,所以也許我所提供的信息是不完整的。在這種情況下 - 讓我知道。

+0

在你想,你使用IDE做這個什麼操作系統,什麼命令你鍵入? –

+0

============================================ PLATFORM_VERSION_CODENAME = REL PLATFORM_VERSION = 4.4.2 TARGET_PRODUCT = RK3066 TARGET_BUILD_VARIANT =主機 TARGET_BUILD_TYPE =釋放 TARGET_BUILD_APPS = TARGET_ARCH =手臂 TARGET_ARCH_VARIANT = ARMv7的-A-氖 TARGET_CPU_VARIANT =皮質-A9 HOST_ARCH = 86 HOST_OS = linux的 HOST_OS_EXTRA = Linux的-3.13.0-37-generic-x86_64-with-LinuxMint-17.1-rebecca HOST_BUILD_TYPE = release BUILD_ID = KOT49H OUT_DIR = out =================== ==================== ===== 使用的命令: $ make -j4 我沒有使用IDE,在終端模擬器中編譯。 –

+0

@KrzysiekSetlak你解決了你的問題嗎? –

回答

1

在線路507在外部文件/ chromium_org /基/安卓/ jni_generator/jni_generator.py

p = subprocess.Popen(args=['javap', class_name], 
        cwd=os.path.dirname(class_file), 
        stdout=subprocess.PIPE, 
        stderr=subprocess.PIPE) 

看來你沒有可用的javap在PATH

如果您已經安裝了jdk1.6.0_45在usr/lib中/ JVM,那麼你就可以運行這個命令

sudo update-alternatives --install /usr/bin/javap javap /usr/lib/jvm/jdk1.6.0_45/bin/javap 1