【问题标题】:Gradle compatibility error when launching sample Android NDK 'Hello JNI' app启动示例 Android NDK 'Hello JNI' 应用程序时出现 Gradle 兼容性错误
【发布时间】:2016-07-26 15:34:10
【问题描述】:

我正在尝试编译包含在 Android NDK 中的示例“Hello JNI”程序,该程序用于测试基本的 Android NDK 功能。但是,每当我尝试使用 Android Studio 执行 Gradle 同步时,都会出现以下错误:

Error:CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher

需要说明的是,我使用的是 32 位的 Windows 7。我认为可能存在版本不匹配,所以我重新安装了 32 位版本的 JDK 和 JRE,并确保我运行的是 32 位版本的 Android Studio,但我一直收到同样的错误。

感谢你们能给我的任何帮助。

注意:这已被确定为重复问题。虽然这是真的,但我已经尝试了另一个问题的答案,但它并没有解决我的问题。如果有人知道其他解决方案,我将不胜感激。

【问题讨论】:

标签: java android c++ gradle android-ndk


【解决方案1】:

我通过简单地切换到 64 位操作系统解决了这个问题,我不再收到错误。

【讨论】:

    猜你喜欢
    • 2015-01-18
    • 1970-01-01
    • 1970-01-01
    • 2011-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-28
    • 2019-04-01
    相关资源
    最近更新 更多