我開始研究IONIC。當我將android添加到項目。我正在低於錯誤。我無法爲離子添加Android平臺
- I have installed Android Studio and pointed SDK (Latest versions)
- updated Cordova and IONIC
- JAVA version is 1.8.0.111
但我仍然收到以下錯誤,請任何人建議我,我可以做些什麼來解決這個問題。
C:\shainfotech\abhayaV2>cordova platform add android --save Adding android project... Creating Cordova project for the Android platform: Path: platforms\android Package: com.ionicframework.abhayav2195873 Name: abhayaV2 Activity: MainActivity Android target: android-24 Subproject Path: CordovaLib Android project created with [email protected] Installing "cordova-plugin-console" for android ANDROID_HOME=C:\Users\satyagvns\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_111 Failed to install 'cordova-plugin-console':CordovaError: Requirements check failed for JDK 1.8 or greater at C:\shainfotech\abhayaV2\platforms\android\cordova\lib\check_reqs.js:278:19 at _fulfilled (C:\shainfotech\abhayaV2\platforms\android\cordova\node_modules\q\q.js:834:54) at self.promiseDispatch.done (C:\shainfotech\abhayaV2\platforms\android\cordova\node_modules\q\q.js:863:30) at Promise.promise.promiseDispatch (C:\shainfotech\abhayaV2\platforms\android\cordova\node_modules\q\q.js:796:13) at C:\shainfotech\abhayaV2\platforms\android\cordova\node_modules\q\q.js:604:44 at runSingle (C:\shainfotech\abhayaV2\platforms\android\cordova\node_modules\q\q.js:137:13) at flush (C:\shainfotech\abhayaV2\platforms\android\cordova\node_modules\q\q.js:125:13) at _combinedTickCallback (internal/process/next_tick.js:67:7) at process._tickCallback (internal/process/next_tick.js:98:9)
Error: Requirements check failed for JDK 1.8 or greater
請幫我解決這個問題。
感謝您的幫助@Anuj。但是我仍然得到相同的錯誤。 –
你有沒有正確地檢查你的路徑? – Anuj
該解決方案是否解決了您的問題? – Anuj