草庐IT

find_stuff

全部标签

java - 类路径或引导类路径中的 Gradle + Retrolambda : Fatal Error: Unable to find package java. lang

我正在尝试将gradle-retrolambda集成到我的Android项目中(遵循this指南),但是当我运行我的gradlebuild时出现以下错误:app:compileDebugJavaFatalError:Unabletofindpackagejava.langinclasspathorbootclasspath堆栈跟踪:org.gradle.api.tasks.TaskExecutionException:任务“:app:compileDebugJava”执行失败。在org.gradle.api.internal.tasks.execution.ExecuteActions

android - 为什么我的构建在 Android Studio 中失败并出现异常 "Failed to find byte code for android/support/v7/app/ActionBarActivity"?

在启用即时运行的情况下从AndroidStudio运行我的应用时出现以下错误。如以下日志中所述,app:transformClassesWithInstantRunForDevDebug失败,因为gradle找不到android/support/v7/app/ActionBarActivityFAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:transformClassesWithInstantRunForDevDebug'.>com.android.build.api.trans

android - "Failed to find style with id 0x7f070001 in current theme"使用 CardView android L (api 21) 时

我刚刚下载并开始学习androidLmaterialdesignapi。每当我在我的Activity中使用CardView时,它都会给我这个错误Failedtofindstylewithid0x7f070001incurrenttheme。这是我的xml布局:这是我的list文件:这是它显示的确切消息:Missingstyles.Isthecorrectthemechosenforthislayout?UsetheThemecomboboxabovethelayouttochooseadifferentlayout,orfixthethemestylereferences.Failed

android - ClassNotFoundException : Didn't find class "android.databinding.DataBinderMapper"

我正在为库项目中的View使用android的数据绑定(bind)库我在我的根gradle文件中添加了以下行classpath'com.android.databinding:dataBinder:1.0-rc1'并在模块的gradle文件中启用了dataBindingapplyplugin:'com.android.databinding'......android{....dataBinding{enabled=true}}我在我的库项目中启用了multiDex以及在使用此库的主机应用程序中但是我在启动库的Activity时得到了这个堆栈跟踪错误java.lang.NoClassD

android - Gradle 和 proguard : could not find method runProguard() for arguments [true]

我已经按照ProguardGradlemanual的建议配置了build.gradle这是根build.gradlebuildscript{repositories{flatDirdirs:'/home/username/android-sdks/tools/proguard/lib'mavenCentral()}dependencies{classpath'com.android.tools.build:gradle:0.5.+'classpath':proguard'}}现在这是我项目的build.gradleapplyplugin:'android'dependencies{co

android - Ubuntu,无法启动 react-native : Could not find tools. jar

我关注了gettingstartedguide安卓/Linux。我尝试使用react-nativerun-android在ubuntu下启动reactnative,但失败并出现错误:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:compileDebugJavaWithJavac'.>Couldnotfindtools.jar我该如何解决?完整输出:$react-nativerun-androidStartingJSserver.../bin/sh:1:adb:notfoundB

android.content.ActivityNotFoundException : Unable to find explicit activity class

我收到此错误:06-0610:45:19.685:E/AndroidRuntime(554):android.content.ActivityNotFoundException:Unabletofindexplicitactivityclass{com.Android.myApp/com.Android.myApp.Facebook.Example};haveyoudeclaredthisactivityinyourAndroidManifest.xml?但是我已经在我的list文件中声明了它。这种异常的其他原因可能是什么?我的list.xml 最佳答案

android - 更新后 - 错误 :Failed to find: com. google.android.gms :play-services:5. 2.8

Gradle项目同步失败。更新androidSDK后出现此错误:Error:Failedtofind:com.google.android.gms:play-services:5.2.8我已检查更新的sdk位置是否已被AndroidStudio使用我已经安装了GoogleRepository并且AndroidSupportRepository也是最新的。还有一个ANDROID_HOME局部变量指向我实际使用的sdk 最佳答案 尝试使用com.google.android.gms:play-services:5.2.08而不是5.2.

android - "cannot find module with tag ' CocosDenshion/android ' in import path"cocos2dx 应用出错

我正在尝试编译在cocos2d-x上开发的Android原生应用程序。当我尝试调试我的应用程序时,我收到以下错误。AndroidNDK:jni/Android.mk:Cannotfindmodulewithtag'CocosDenshion/android'inimportpathAndroidNDK:AreyousureyourNDK_MODULE_PATHvariableisproperlydefined?AndroidNDK:Thefollowingdirectoriesweresearched:我的android.mk文件中有以下几行$(Callimport-add-path,

android - Gradle 构建失败 : Unable to find method 'org.gradle.api.tasks.testing.Test.getTestClassesDirs()Lorg/gradle/api/file/FileCollection;'

当我试图编译一个导入的project从github,我的gradle构建总是失败并出现以下异常。Unabletofindmethod'org.gradle.api.tasks.testing.Test.getTestClassesDirs()Lorg/gradle/api/file/FileCollection;'Possiblecausesforthisunexpectederrorinclude:Gradle'sdependencycachemaybecorrupt(thissometimesoccursafteranetworkconnectiontimeout.)Re-down