草庐IT

rake_task

全部标签

android - Gradle 构建 : Execution failed for task ':app:lint'

我正在使用AndroidStudio2.0,当发生奇怪的事情时,我正试图运行我的程序。我运行了gradle的构建命令,我得到了这个错误:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:lint'.>Lintfounderrorsintheproject;abortingbuild.Fixtheissuesidentifiedbylint,oraddthefollowingtoyourbuildscripttoproceedwitherrors:...android{lintOpt

android - 无法从 Android Studio 生成签名的 APK "Execution failed for task ' :packageRelease'"

我正在使用AndroidStudio1.2.2并尝试使用proguard设置生成APK。但我不能这样做并收到以下错误消息。“任务':packageRelease'执行失败。Unabletocomputehashof/Users/Documents/projectX/app/build/intermediates/classes-proguard/release/classes.jar"proguard设置很简单。-dontshrink-dontoptimize-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dont

android - FLAG_ACTIVITY_RESET_TASK_IF_NEEDED 和 FLAG_ACTIVITY_CLEAR_TOP 的区别是什么 | FLAG_ACTIVITY_SINGLE_TOP?

我正在(最终)为我的书编写关于任务的章节,我遇到了一些挥之不去的难题。用作主屏幕启动器的东西似乎使用了FLAG_ACTIVITY_NEW_TASK的组合和FLAG_ACTIVITY_RESET_TASK_IF_NEEDED当他们启动请求的启动器Activity时:Intenti=newIntent(Intent.ACTION_MAIN);i.addCategory(Intent.CATEGORY_LAUNCHER);i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);i.

android - Gradle 构建不起作用 : Execution failed for task ':MyApp:compileDebug'

我正在尝试将项目迁移到Gradle,但每次运行命令时都会引发异常gradlebuild--stacktrace我使用的是Gradle1.6。这是错误的堆栈跟踪::MyApp:compileDebugFAILEDFAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':MyApp:compileDebug'.>Compilationfailed;seethecompilererroroutputfordetails.*Try:Runwith--infoor--debugoptiontogetmore

android - 错误 :Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'

所以我在尝试运行我的项目时不断收到gradlebuild错误。我已经搜索了其他解决方案,有人说添加:packagingOptions{exclude'META-INF/NOTICE'}到我的应用程序的gradle.build将解决问题,但是,它没有。这是我的应用的gradle.build目前的样子。applyplugin:'com.android.application'applyplugin:'com.google.gms.google-services'dependencies{compilefileTree(include:['*.jar'],dir:'libs')compile

android - 错误 :Execution failed for task ':app:transformClassesWithDexForDebug' in android studio

我正在将我的项目从eclipse转移到AndroidStudio。在运行我的一个应用程序时,我收到以下错误。无法找到任何解决方案。我也启用了multidex。Error:Executionfailedfortask':app:transformClassesWithDexForDebug'.com.android.build.api.transform.TransformException:java.lang.RuntimeException:com.android.ide.common.process.ProcessException:java.util.concurrent.Exe

android - GET_TASKS 权限已弃用

我有一个使用此权限的安全应用(AppLocker):android.permission.GET_TASKS在androidLollipop中,此权限已被弃用,我希望我的应用在+21API中运行。谁能指导我怎么做?谢谢:) 最佳答案 它被弃用是有原因的。android.permission.GET_TASKS的保护级别已提升到signatureOrSystem。对此没有简单且无害的解决方案。AsofLOLLIPOP,thismethodisnolongeravailabletothirdpartyapplications:thein

android - 错误 :Execution failed for task ':app:transformClassesWithInstantRunSlicerForDebug' . > java.io.IOException:

每当我尝试运行我的应用程序时,我都会收到此错误:错误:任务执行失败:app:transformClassesWithInstantRunSlicerForDebug'.java.io.IOException:FailedtodeleteC:\Users\ashis\AndroidStudioProjects\FirstApp\app\build\intermediates\instant-run-support\debug\restart-changes.txt**这是输出:信息:Gradle任务[:app:assembleDebug]:app:preBuildUP-TO-DATE:a

android - 错误 :Execution failed for task ':app:transformClassesWithJarMergingForDebug'

美好的一天。在AndroidStudio中更新google存储库后,我有一个问题>Error:Executionfailedfortask':app:transformClassesWithJarMergingForDebug'.>com.android.build.transform.api.TransformException:java.util.zip.ZipException:duplicateentry:>android/support/v7/cardview/BuildConfig.class我试图从播放服务中排除组android.support,它没有帮助。当我在另一台P

android - 错误 :Execution failed for task ':ProjectName:mergeDebugResources' . > Crunching Cruncher *some file* 失败,请参阅日志

我在尝试制作项目模块时遇到此错误applyplugin:'com.android.library'android{compileSdkVersion17buildToolsVersion"19.1.0"defaultConfig{minSdkVersion8targetSdkVersion8}buildTypes{release{minifyEnabledfalseproguardFilesgetDefaultProguardFile('proguard-android.txt'),'proguard-rules.txt'}}}dependencies{compilefiles('li