草庐IT

task-tracking

全部标签

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

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

安卓 : multiple audio tracks in a VideoView?

我有一些.MP4视频文件必须在AndroidActivity的VideoView中读取。这些视频包含多个音轨,每个音轨对应一种用户语言(例如:英语、法语、日语...)。我在寻找任何帮助或文档来提供此类功能时遇到了意外的麻烦。我目前可以使用MediaController加载视频并在VideoView中播放,但不能更改音轨。我不确定AndroidSDK是否提供任何简单的方法来做到这一点,这让我对如何解决我的问题一无所知。我正在考虑提取每个音轨,根据语言将我想要的音频加载到MediaPlayer中,然后让音频和视频一起播放。但我担心可能会出现一些同步问题并阻止我这样做。如果您有任何线索,任何

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