草庐IT

task_info

全部标签

android - 错误 :Execution failed for task ':app:buildInfo Debug Loader'

我几天前更新到AndroidStudio2.0,一切正常,但是今天当我尝试编译项目时,我在Logcat中收到以下错误:Error:Executionfailedfortask':app:buildInfoDebugLoader'.Exceptionwhiledoingpastiterationbackup:Source\app\build\intermediates\builds\debug\184802777347678\classes.dexanddestination\app\build\intermediates\builds\debug\184802777347678\cla

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

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

安卓谷歌地图API V2 : Open Custom Info Window on Right Side of Marker

我已经集成了适用于Android的GoogleMAPAPIV2。我想在我的标记的Onclick上有一个自定义信息窗口。到此为止还好。我已经整合了它。我想要什么:我想在标记的右侧而不是标记的顶部显示我的自定义信息窗口。以下是我正在使用的代码:publicclassMainActivityextendsFragmentActivity{privateMainMapFragementmapFragment;privateHashMapeventMarkerMap;MarkerThirdMarker;@OverrideprotectedvoidonCreate(BundlesavedInsta

android - 在 Android Studio 中找不到模块应用程序的 Gradle build-info.xml

Gradlebuild-info.xmlnotfoundformoduleapp.Pleasemakesurethatyouareusinggradleplugingradle:2.0.0-alphaorgreater我正在使用gradle:2.0.0-beta2中的gradle插件。我随机收到此警告,此后该应用程序经常未更新或崩溃。清理和重建即可解决问题。有没有更好的解决方法? 最佳答案 对我来说,它发生在Mac上,但在Windows上它一直运行良好。自从我将AndroidStudio更新到2.0测试版后,这个问题一直存在,直到A

android - 无法在 Intellij 中调试 android 应用程序 : "Warning: debug info can be unavailable."

我正在尝试在Windows7上使用Intellij13.0调试应用程序。每当我开始调试时,我都会收到以下警告:Warning:debuginfocanbeunavailable.PleasecloseotherapplicationusingADB:Monitor,DDMS,Eclipse"我已经在设备和模拟器中对其进行了测试。我唯一打开的是Intellij。我也尝试在开始调试之前关闭adb,但没有任何改变。 最佳答案 对我来说,这种情况发生在设备通过USB连接并启用adbtcpip(Wi-Fi模式下的ADB)时。只需在连接的设备上

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