草庐IT

find_one

全部标签

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

安卓 Espresso : How do I test a specific Fragment when following one activity to several fragment architecture

我的应用由一个Activity组成,用于许多Fragments。我希望使用Espresso来测试Fragments的UI。但是我遇到了一个问题。如何测试未添加到onCreate中的Activity的Fragment。我看到的所有Fragment示例都涉及在onCreate中添加的Fragment。那么如何告诉Espresso转到特定的Fragment并从那里开始?谢谢 最佳答案 如果您使用的是导航架构组件,您可以在测试开始时通过深度链接到目标fragment(使用适当的参数)立即测试每个fragment。@Rule@JvmField

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

android - 在查看时 Gradle 警告 : Could not find google-services. json

这个问题在这里已经有了答案:google-services.jsonfordifferentproductFlavors(28个回答)关闭4年前。我收到以下警告。如何避免此警告?Couldnotfindgoogle-services.jsonwhilelookingin[src/flavor1/debug,src/debug,src/flavor1]Couldnotfindgoogle-services.jsonwhilelookingin[src/flavor1/release,src/release,src/flavor1]Couldnotfindgoogle-services.j

android - 让我们解决当前主题中的 "Failed to find style ' mapViewstyle'错误

很抱歉再发布一个,但似乎我们还没有记录此问题的所有解决方案。事情是这样的:我添加了一个mapView,一切正常。我添加了一个滑动抽屉并将按钮移动到其中,然后将根节点从线性更改为相对。从那时起,我的main.xml类的图形布局中出现错误,显示为Missingstyles.Isthecorrectthemechosenforthislayout?UsetheThemecomboboxabovethelayouttochooseadifferentlayout,orfixthethemestylereferences.Failedtofindstyle'mapViewStyle'incurr

android - 包android.support.v7.internal.view.menu不存在: cannot find symbol class MenuBuilder

我刚刚从compile'com.android.support:appcompat-v7:23.1'升级了我的支持库compile'com.android.support:appcompat-v7:23.1.1'.0'。它给了我这个错误:packageandroid.support.v7.internal.view.menudoesnotexist:cannotfindsymbolclassMenuBuilder我在我的应用程序中使用弹出菜单。根据谷歌的说法,PopUpMenu继承了接口(interface)com.android.internal.view.menu.MenuBuil

android - 我怎样才能避免 "IllegalStateException: Scrollview can host only one direct child"?

我在我的Android布局中使用ScrollView但它显示IllegalStateException"Scrollview只能承载一个直接子级"如何避免此异常?崩溃信息:07-1915:58:22.3082137221372DAndroidRuntime:ShuttingdownVM07-1915:58:22.3132137221372EAndroidRuntime:FATALEXCEPTION:main07-1915:58:22.3132137221372EAndroidRuntime:Process:com.languoguang.helloworld,PID:2137207-1