找回密码
 立即注册
收起左侧

Android 编译问题

1
回复
6010
查看
[复制链接]

尚未签到

来源: 2017-8-9 17:51:13 显示全部楼层 |阅读模式
1Qter豆
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJava'.
> Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

* 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: 11.952 secs
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Warning: QML import could not be resolved in any of the import paths: QtQuick.Extras.Private.CppUtils
Building the android package failed!
  -- For more information, run this command with --verbose.
14:54:29: 进程"C:\Qt\Qt5.7.0\5.7\android_armv7\bin\androiddeployqt.exe"退出,退出代码 14 。
Error while building/deploying project mapviewer (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.0))
When executing step "Build Android APK"
14:54:29: Elapsed time: 00:45.    不是代码问题,无论什么都会出现

回复

使用道具 举报

累计签到:742 天
连续签到:1 天
2017-8-9 22:03:39 显示全部楼层
这么明白的问题,我觉得应该可以解决的啊,你的  java  安装有问题,试试 CMD 窗口有没有 java -version 的信息,你只有 java 运行时环境, JDK 没装!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了