从IDEA运行Gradle任务时:
控制台输出如下:
可以看出,bootRun任务失败了.但我找不到失败的原因.
从Gradle窗口启动任务时,是否有办法使Intedle输出显示在Intellij控制台中?
我最近下载了Android Studio以开发Android应用程序(我来自Eclipse),我在使用外部库和/或外部JAR文件以及我自己的项目时遇到了问题.注意:以下测试是在Android Studio中从头开始创建的新应用程序项目上进行的.
示例1:JAR导入.
从Google下载Admobs SDK的最新副本.
将库jar复制GoogleAdMobAdsSdk-6.4.1.jar到项目的/ libs /文件夹.
在项目资源管理器中,右键单击新添加的library.jar,然后单击"Add as Library".
从技术上讲,此时一切正常,导入工作正常,布局编辑器显示AdView窗口小部件的预览以及所有这些.该唯一的问题是,它不会成功编译.
从控制台登录:
Gradle:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':APITests:compilePaidDebug'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Could not execute build using Gradle …Run Code Online (Sandbox Code Playgroud)