正在检查Java JDK和Android SDK版本ANDROID_SDK_ROOT=未定义(建议设置)ANDROID_HOME=c:\Users\krishna kale\AppData\Local\Android\Sdk(已弃用)JDK 1.8.x的要求检查失败!检测到的版本:17.0.1检查ANDROID_SDK_ROOT / JAVA_HOME / PATH环境变量。[错误]执行子程序cordova时发生错误。
我不想改变我的环境变量,有没有办法通过改变应用程序中的依赖关系来建立这个问题?为什么会出现这个问题?
1条答案
按热度按时间nnsrf1az1#
If you are using ionic 1 - 3, you need to change the environment variables. I have tested Ionic 3 with other java version other than 1.8, and it didn't work.
The newer java version has a new path created under "System variables" > "Path" on the top.
You can retain 2 java versions and revert back to your current java version (17.0.1) once you have built your app.
You can follow these steps:
Reverting back to original version