Menu Home

Xcode 5.1编译android源码错误

升级Xcode后,在编译android 4.4.2是出现如下错误:

SyntaxError: Unable to find any JNI methods for org/chromium/ui/gfx/BitmapHelper.

解决方法有两个:

  • 回退xcode版本
  • 修改文件external/base/android/jni_generator/jni_generator.py :
    +import platform

    -p = subprocess.Popen(args=[‘cpp’, ‘-fpreprocessed’],

    +system = platform.system()
    +if system == ‘Darwin’:
    + cpp_args = [‘cpp’]
    +else:
    + cpp_args = [‘cpp’, ‘-fpreprocessed’]
    +p = subprocess.Popen(args=cpp_args,
    + stdin=subprocess.PIPE,
    + stdout=subprocess.PIPE,
    + stderr=subprocess.PIPE)

Categories: android framework android构建工具 macos

Tagged as:

lnmcc

Leave a Reply

Your email address will not be published.