在Ubuntu 18.04下,JavaSDK 8缺少java.se.ee

时间:2019-05-10 13:31:39

标签: android ubuntu java-8 ionic4

我有一台新的Ubuntu 18.04计算机,并且我正在尝试为Android编译Ionic4应用程序,但无法通过该错误:

Error: Could not find or load main class java.se.ee

我已经切换到openSDK8并配置了JAVA_HOME变量,但是没有运气。 有没有办法解决或克服此错误?

我也尝试添加

JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'

到.bashrc文件失败

这里是离子cordova插件的输出列表是:

cordova-clipboard 1.1.1 "Clipboard"
cordova-plugin-advanced-http 2.0.1 "Advanced HTTP plugin"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-battery-status 2.0.1 "Battery"
cordova-plugin-brightness 0.1.5 "Brightness"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-email-composer 0.8.15 "EmailComposer"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-fullscreen 1.1.0 "cordova-plugin-fullscreen"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 2.0.2 "InAppBrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-networkinterface 2.0.0 "NetworkInterface"
cordova-plugin-screen-orientation 2.0.2 "Screen Orientation"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.0 "StatusBar"
cordova-plugin-vibration 2.1.6 "Vibration"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-sqlite-storage 3.2.0 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version"
es6-promise-plugin 4.1.0 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"

0 个答案:

没有答案