简体   繁体   English

离子项目在Android上运行时会引发异常?

[英]Ionic project throws exception when run on android?

I'm trying execute an Ionic project on Android. 我正在尝试在Android上执行Ionic项目。 When I try execute the project does throws an exception from cordova. 当我尝试执行项目时,确实会引发cordova的异常。 Looking for a solution I found some peoples saying to set path of Android SDK, I made this but I still haven't any success. 在寻找解决方案时,我发现有人说要设置Android SDK的路径,虽然做到了这一点,但仍然没有任何成功。 I added paths C:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\tools and C:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\platform-tools . 我添加了路径C:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\toolsC:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\platform-tools

How could I solve it ? 我该如何解决?

在此处输入图片说明

  1. Check your path of Android with ANDROID_HOME variable. 使用ANDROID_HOME变量检查您的Android路径。 This path should be the root of your SDK in the User variables . 该路径应该是User variables SDK的根。 If it is not exist, add a new one. 如果不存在,请添加一个新的。
    • Type $ android in the command line to check the SDK. 在命令行中输入$ android来检查SDK。
    • You also have to check if the API 19 has been installed. 您还必须检查是否已安装API 19
  2. Try to un-plug the device and re-plug again. 尝试拔下设备的插头,然后再次重新插入。 Run the adb devices to make sure your device has been recognized by the computer. 运行adb devices以确保计算机已识别您的设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Android上运行离子项目? - How to run ionic project on android? 离子3 cli'离子cordova运行android'命令抛出错误 - ionic 3 cli 'ionic cordova run android' command throws an error 尝试运行“ionic cordova run --emulator”时,在 com.android.prefs.AndroidLocation.getAvdFolder() 上出现 NoSuchMethodError 异常 - Getting NoSuchMethodError exception on com.android.prefs.AndroidLocation.getAvdFolder() when trying to run “ionic cordova run --emulator” Ionic Run Android:线程“main”中的异常 - Ionic Run Android: Exception in thread "main" 无法运行“phonegap run android”,抛出异常 - Can't run “phonegap run android”, throws Exception Android:尝试全屏浏览时WebView引发异常 - Android: WebView throws exception when trying fullscreen 在Android的子视图中加载Unity Vuforia项目会引发致命异常 - loading a Unity Vuforia Project in a Subview in Android throws Fatal Exception Android Gradle Project将构建工具升级到21.0.1:aapt抛出异常 - Android Gradle Project upgrading build tools to 21.0.1: aapt throws Exception 运行android应用时出错-离子 - Error when run android app - ionic 将okhttp3库与react-native一起使用(运行'react-native run-android'命令时会引发异常) - Using okhttp3 library with react-native (throws an exception when running the command of 'react-native run-android')
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM