我正在尝试编译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
需要明确的是,我使用的是Windows 7 32位。我以为可能存在版本不匹配的情况,因此我重新安装了32位版本的JDK和JRE,并确保我正在运行32位版本的Android Studio,但是我仍然遇到相同的错误。
谢谢你们给我的任何帮助。
注意:这已被确认为重复问题。虽然这是事实,但我尝试了在另一个问题上给出的答案,但没有解决我的问题。如果有人知道其他解决方案,我将不胜感激。
最佳答案
我通过简单地切换到64位操作系统来解决了这个问题,而我再也没有收到该错误。