配置根项目' android'

时间:2017-05-19 15:25:01

标签: android ionic2

我已经阅读了所有有同样问题的帖子,没有人解决这个问题。我对Ionic完全不熟悉(我对Crodova和intelXdk有一些了解但不是离子的。)

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

我无法在Chrome中对此进行测试,因为facebook和存储都是Native依赖项,并且无法在计算机中进行测试。因此,我开始尝试构建Android应用程序,以便在我的手机中测试这个,每次我启动"离子运行android"我明白了:

离子运行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进行开发

0 个答案:

没有答案