草庐IT

Execution_Start

全部标签

android - "Error:Failed to complete Gradle execution. Cause: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)"

我的androidstudio开始卡住,所以我使用任务管理器终止了任务,当我重新打开androidstudio时,我收到了这个错误:Error:FailedtocompleteGradleexecution.Cause:Gradlebuilddaemondisappearedunexpectedly(itmayhavebeenkilledormayhavecrashed)我尝试清理和重建gradle,关闭并重新打开android,但它并没有消失。堆栈溢出的主要答案似乎有过时的答案,可以点击不再存在的东西,例如Settings-->Gradle-->GradleVMoptions。

android - "Execution of compression failed"Android Studio 3.1 建工程报错

我正在尝试构建https://github.com/neural-nuts/Cam2Caption在AndroidStudio3.1Preview中,但要么我使用非常旧的build.gradle,要么它死于Error:Executionfailedfortask':Application:packageDebug'.Executionofcompressionfailed.这发生在项目清理或重建之后。OSX,最新最全。我正在使用我认为默认的最新最好的build.gradleclasspath'com.android.tools.build:gradle:3.0.0'...android

java - 如何解决: Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'

完整的错误是这样的错误:任务“:app:transformClassesWithInstantRunForDebug”执行失败。java.lang.IllegalStateException:ExpectedBEGIN_ARRAYbutwasSTRINGatline1column1path$我在AndroidStudio上对我的项目做了一个小改动,试图运行它但它使我的PC崩溃,它完全卡住了几分钟,这是第一次在AS上编译时发生(我没有使用ADB)当我的电脑重新启动时,我得到了错误错误:条目中的空值:blameLogFolder=null结果告诉我删除项目的.gradle文件夹,所以我这样

android - 在 android studio 3.3 org.gradle.execution.MultipleBuildFailures : Build completed with 1 failures 中构建应用程序时出错

关闭。这个问题需要detailsorclarity.它目前不接受答案。想改进这个问题吗?通过editingthispost添加细节并澄清问题.关闭3年前。Improvethisquestion当我尝试在模拟器中运行我的应用程序时它运行正常,但是当我尝试构建应用程序时错误...错误图片:org.gradle.execution.MultipleBuildFailures:Buildcompletedwith1failures.atorg.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLa

android - 无法解决 SonarQube 错误 "Make this line start at column 3"

我在xml(布局、字符串、可绘制对象...)中有很多行都存在此错误。我试图将每个列的空间更改为3,以便在出现此错误的行中放置3个选项卡,但我在SonarQube中仍然遇到此错误。我该如何解决这个问题?我在这里举了一个我遇到这个错误的例子: 最佳答案 为了遵守“让这一行从第3列开始”的规则,您必须将代码缩进2个空格。我建议您在项目的根目录下使用.editorconfig文件(参见EditorConfig),内容如下:root=true[*]charset=utf-8end_of_line=lfinsert_final_newline=

android - 通过 adb shell am start 将数据发送回启动 Activity 的脚本

我想从adb安装诊断应用程序,并从bash脚本中获取数据。我知道如何从adb开始一个Activity,但我找不到任何方法来取回数据,除非我打印到logcat并解析输出,但是听起来像黑客。有没有办法从使用adb开始的Activity中接收数据? 最佳答案 如果要发送回自动化脚本的数据可以序列化为长度小于4k的字符串-使用logcat是自然而然的选择。只需使用Log.i("UNIQUE_TAG",the_data_string_you_want_to_send_back_to_your_script);将数据打印到日志中即可然后在自动化

android - 如何调试从 'adb shell am start -D ' 开始的 android 应用程序?

我需要调试已安装在手机上的Android应用程序。我能够在Debug模式下启动应用程序,但我无法连接使用JDWP的进程。我尝试了两种不同的方法,但都失败了。(请参阅以下部分)命令行尝试1-启动应用程序[...]sdk\platform-tools>adb-dshellamstart-D-n"package/package.SomeActivity"应用程序启动并显示警告“/!\Waitingfordebugger”。2-打开一个JDWP端口[...]sdk\platform-tools>adbforwardtcp:8000jdwp:76023-尝试使用jdb连接[...]sdk\pla

android - 错误 :Execution failed for task ':app:prepareDebugAndroidTestDependencies' . > 依赖性错误。详情见控制台

错误:任务':app:prepareDebugAndroidTestDependencies'执行失败。DependencyError.Seeconsolefordetails.在app.gradle文件中添加如下依赖后-androidTestCompile'com.android.support.test:runner:0.5'androidTestCompile'com.android.support.test:rules:0.5'androidTestCompile'com.android.support.test.espresso:espresso-core:2.2.2'//a

安卓工作室 : Error:Execution failed for task ':app:dexDebug'

我是第一次使用AndroidStudio,导入项目后出现以下错误(之前是eclipse项目,我也有问题。)这里是给出的信息:Error:Executionfailedfortask':app:dexDebug'.>com.android.ide.common.internal.LoggedErrorException:Failedtoruncommand:/home/crash-id/Development/SDK/adt-bundle-linux-x86_64-20140702/sdk/build-tools/21.1.2/dx--dex--no-optimize--output/h

android - 每次都必须执行 adb kill-server 和 start-server 才能在 Ubuntu 中识别 android 设备

我正在eclipse中开发android应用程序,最近我从Ubuntu12.10(QuantalQuetzal)升级到Ubuntu13.04(RaringRingtail)。在以前的Ubuntu版本中,我在识别我的Android设备时遇到了零个问题。在这个新的Ubuntu版本中,我必须这样做:sudoadbkill-server和sudoadbstart-server为了让Ubuntu识别我的安卓设备。每次我重新启动计算机时,当我尝试调试应用程序时,eclipse中都会出现问号,我每次都必须运行这些命令行才能使其正常工作。谁知道有没有办法永久识别我的手机?