Android 配置根项目时出现问题';安卓&x27;

Android 配置根项目时出现问题';安卓&x27;,android,ionic2,Android,Ionic2,我读过所有有相同问题的帖子,没有一篇解决了这个问题。我对爱奥尼亚完全陌生(我对Crodova和intelXdk有一些了解,但对爱奥尼亚不了解) 我按照一些教程来运行我的第一个应用程序。首先,它运行良好(当然,它只有文本:D),然后我开始尝试在应用程序中登录facebook 我无法在Chrome上测试这一点,因为facebook和存储都是本机依赖项,无法在计算机上测试。因此,我开始尝试构建android应用程序,以便在我的手机上进行测试,每次我启动“ionic run android”时,我都会得

我读过所有有相同问题的帖子,没有一篇解决了这个问题。我对爱奥尼亚完全陌生(我对Crodova和intelXdk有一些了解,但对爱奥尼亚不了解)

我按照一些教程来运行我的第一个应用程序。首先,它运行良好(当然,它只有文本:D),然后我开始尝试在应用程序中登录facebook

我无法在Chrome上测试这一点,因为facebook和存储都是本机依赖项,无法在计算机上测试。因此,我开始尝试构建android应用程序,以便在我的手机上进行测试,每次我启动“ionic run android”时,我都会得到以下信息:

ionic运行android——stacktrace

> ionic-app-base@0.0.0 ionic:build /home/chaibi/Bureau/foody
> ionic-app-scripts build "--stacktrace"

[16:14:53]  ionic-app-scripts 1.3.7 
[16:14:53]  build dev started ... 
[16:14:53]  clean started ... 
[16:14:53]  clean finished in 4 ms 
[16:14:53]  copy started ... 
[16:14:53]  transpile started ... 
[16:14:55]  transpile finished in 2.34 s 
[16:14:55]  preprocess started ... 
[16:14:55]  deeplinks started ... 
[16:14:55]  deeplinks finished in 19 ms 
[16:14:55]  preprocess finished in 21 ms 
[16:14:55]  webpack started ... 
[16:14:55]  copy finished in 2.64 s 
[16:15:04]  webpack finished in 8.52 s 
[16:15:04]  sass started ... 
[16:15:05]  sass finished in 1.10 s 
[16:15:05]  postprocess started ... 
[16:15:05]  postprocess finished in 6 ms 
[16:15:05]  lint started ... 
[16:15:05]  build dev finished in 12.07 s 
[16:15:07]  lint finished in 2.37 s 
ANDROID_HOME=/home/chaibi/Android/Sdk

JAVA_HOME=/usr/lib/jvm/java-8-oracle

Subproject Path: CordovaLib

The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

    at build_2h23ogq2gf6aqvti7pywfv5r2.run(/home/chaibi/Bureau/foody/platforms/android/build.gradle:137)


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.



BUILD FAILED

Total time: 1.822 secs

Error: /home/chaibi/Bureau/foody/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> java.lang.NullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我正在使用Ionic 2.2、openjdk-8和WebStorm开发这是您第一次编译任何Ionic应用程序吗?您是否已经安装了android studio或android emulator?如果是这样,请下载适用于windows的sdk工具解压缩并粘贴到此处
C:\Users\[您的用户名]\AppData\Local\Android\sdk\tools
它会工作的嘿,术士,安装了sdk,我想我提到了使用Ubuntu:)你安装了Android emulator命令行工具,奇怪的是,这解决了我的问题,我有一个类似的
openjdk-8
。。我建议您安装oracle java for android dev。。