草庐IT

launch_task

全部标签

android - IllegalAccessException : can not access a member of class com. android.build.gradle.tasks.ManifestProcessorTask

AndroidStudio一直告诉我构建失败。我没有使用Kotlin,我所有的代码都在JAVA中。仅当我想构建/运行项目时,我才会不断收到此错误。我总是需要删除.gradle文件夹并重新启动AndroidStudio才能让它再次工作。我觉得这不是IDE问题,因为我同时使用了IDE版本3.1和3.3。我还将Kotlin更新到了当前1.2.70的最新版本*Whatwentwrong:Aproblemoccurredconfiguringproject':app'.>Couldnotcreatetask':app:processProdDebugManifest'.>java.lang.Il

java - Gradle 构建失败,消息为 : TaskDependencyResolveException: Could not determine the dependencies of task ':compileDebugKotlin'

我已将AndroidStudio更新为3.3,现在我无法构建现有项目之一,我尝试过无效/重启,还检查了gradle-wrapper.properties其中gradle版本是最新更新:distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip这是我的build.gradleapplyplugin:'com.android.application'applyplugin:'kotlin-android'applyplugin:'kotlin-android-extensions'appl

gradle - Unresolved reference : launch

尝试为Kotlin协程运行一些示例,但无法构建我的项目。我正在使用最新的gradle版本-4.1有什么建议检查/修复什么?这里是build.gradlebuildscript{ext.kotlin_version='1.1.4-3'repositories{mavenCentral()}dependencies{classpath"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"}}applyplugin:'kotlin'applyplugin:'application'kotlin{repositories{jcen

android - Gradle 错误 :Execution failed for task ':app:processDebugGoogleServices'

我正在点击此链接将Google登录功能集成到我的Android应用程序中。https://developers.google.com/identity/sign-in/android/start-integrating正如上面给定页面的最后一步中给出的,我们必须包含依赖项compile'com.google.android.gms:play-services-auth:8.3.0'在应用程序级build.gradle文件中,但这样做并构建项目时出现错误提示Error:Executionfailedfortask':app:processDebugGoogleServices'.>Ple

java - 错误 :Execution failed for task ':app:dexDebug' . com.android.ide.common.process.ProcessException

错误:任务':app:dexDebug'执行失败。com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process'command'C:\ProgramFiles\Java\jdk1.8.0_40\bin\java.exe''finishedwithnon-zeroexitvalue2我搜索了所有类似的问题和解决方案,但没有帮助。我希望像你这样的专家出现。项目代码已上传到bitbucket:https://tainule@bitbucket.org/tain

android - session 'app' : Error Launching activity

在gradle构建完成后更新AndroidStudio2.0后,我得到了这个:session“应用程序”:启动Activity时出错。它会阻止应用程序启动,但它已安装在我的模拟器中。这是运行选项卡中出现的内容:Unexpectederrorwhileexecuting:amstart-n"com.example.user.ypologismosmoriwn/com.example.user.ypologismosmoriwn.MainActivity"-aandroid.intent.action.MAIN-candroid.intent.category.LAUNCHERErrorw

android - 错误 : Execution failed for task ':app:clean' . 无法删除文件

我正在尝试重建我的AndroidStudioGradle项目(主要包含Kotlin代码),但它在清理/重建过程中开始抛出UnableToDeleteFileException:Executionfailedfortask':app:clean'.>Unabletodeletefile:C:\Users\User\KotlinGameEngine\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.0.1\jars\classes.jar这在我尝试更改项目的包结构后开始发生。不幸的是,我通过重命

c++ - 关于 std::async 与 std::launch::async 参数启动的线程的混淆

我对std::async函数有点困惑。规范说:asynchronousoperationbeingexecuted"asifinanewthreadofexecution"(C++11§30.6.8/11).现在,这是什么意思?在我的理解中,代码std::futurefut=std::async(std::launch::async,pow2,num);应该在一个新线程上启动函数pow2并将变量num按值传递给线程,然后在将来的某个时间,当函数完成时,放置fut中的结果(只要函数pow2具有类似doublepow2(double);的签名)。但是规范声明“好像”,这让整个事情对我来说有

c++ - Visual Studio 2013 "A task was cancelled"

在Windows7SP1上安装VS2013(更新3)后,我遇到了类似的情况,如thispost安装windows8.1sdkvisualstudio后无法构建任何win32项目并打印输出:1>----—Buildstarted:Project:ConsoleApplication1,Configuration:DebugWin32—----1>Ataskwascanceled.1>Ataskwascanceled.=========Build:0succeeded,1failed,0up-to-date,0skipped========== 最佳答案

json - 如何在 VSCode 中将环境变量添加到 launch.json

在node.js项目中使用新的VSCode编辑器。我正在尝试通过编辑launch.json文件来配置我的“启动”配置文件以进行调试。我需要将连接字符串设置为环境变量。根据launch.json文件中的注释://Environmentvariablespassedtotheprogram."env":{}我尝试像这样添加我的环境变量:"env":{"CONNECTION_STRING":"DataSource=server;InitialCatalog=catalog;UserID=uid;Password=pwd;MultipleActiveResultSets=true"}当我尝试启