草庐IT

selector-no

全部标签

android - Activity 未找到异常 : No Activity found to handle Intent

我从googleplay收到的这份报告,我的应用程序崩溃时间:android.content.ActivityNotFoundException:NoActivityfoundtohandleIntent{act=com.google.android.gms.common.account.CHOOSE_ACCOUNT(hasextras)}atandroid.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1518)atandroid.app.Instrumentation.execStartActiv

java - 'texture2D' : No matching overloaded function found OpenGL ES2?

我正在做一个项目,为了那个项目,我必须通读一本名为“OpenGLES2ForAndroid:快速入门指南”的书。所以当我进行纹理处理时,我得到了以下错误:'texture2D':Nomatchingoverloadedfunctionfound当我编译着色器时。着色器代码://Fragmentshaderprecisionmediumpfloat;uniformsampler2Du_TextureUnit;varyingvec4v_TextureCoordinates;voidmain(){gl_FragColor=texture2D(u_TextureUnit,v_TextureCo

android - 错误 : No flavor is associated with flavor dimension 'xxx'

我的应用程序级build.gradle文件中有以下内容:flavorDimensions"store","features"productFlavors{amazon{dimension"store"...}play{dimension"store"...}none{dimension"features"...}myAwesomeFeature{dimension"features"...}anotherAwesomeFeature{dimension"features"...}all{dimension"features"...}}当我尝试同步我的项目文件时出现错误,提示“错误:没有

AttributeError: partially initialized module ‘torch‘ has no attribute ‘no_grad‘ (most likely due to

(py38)root@autodl-container-f87d1190ac-c4b4f816:~/autodl-tmp/work1.1#pythonPython3.8.16(default,Mar22023,03:21:46)[GCC11.2.0]::Anaconda,Inc.onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>importtorchTraceback(mostrecentcalllast):File"/root/miniconda3/envs/py38/lib/python3.8/s

Android 项目构建失败,检索项目 : No resource found that matches the given name 的父项时出错

我最近安装了AndroidStudio1.5.1版的全新副本。我导入了一个基于以前版本的AndroidStudio构建的项目,并尝试加载到IDE中。但它开始给我这个错误。Error:Executionfailedfortask':app:processDebugResources'.>com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:Process'command'C:\Users\yomal.ds\AppData\Local\Android\android

Junit运行错误:报错no tests were found

问题描述在正常书写测试类时,尝试运行发现报错:notestswerefound上网搜索出现该情况的可能性主要为1.@Test注解的单元测试方法不能有返回值2.进行单元测试的方法不能私有化问题解决修改单元测试方法后问题仍未得到解决@TestpublicvoidtestOne(){System.out.println("hello");}}后来发现可能是junit依赖有问题,更换junit依赖版本为4.12(原本使用4.11)问题得到解决

java - 检索项目 : No resource found that matches the given name '@android:style/Theme.AppCompat.Light.DarkActionBar' 的父项时出错

我正在关注来自developers.android.com的android开发教程,目前我正在尝试使用此处提供的信息来设置操作栏的样式:https://developer.android.com/training/basics/actionbar/styling.html#CustomBackground7这是res/values/themes.xml的代码:@style/MyActionBar@style/MyActionBar@drawable/actionbar_background@drawable/actionbar_background我在“style”开始标签旁边看到红叉

android - OSMdroid - 错误 : no suitable constructor found for Overlay(no arguments) constructor Overlay. 覆盖(上下文)不适用

在应用程序中扩展OSMdroidOverlay类时importorg.osmdroid.views.overlay.Overlay;...publicclassMapOverlayAreaextendsOverlayimplementsTextToSpeech.OnInitListener,OnTouchListener{...我收到一个错误:error:nosuitableconstructorfoundforOverlay(noarguments)constructorOverlay.Overlay(Context)isnotapplicable 最佳答

android - 警报对话框生成器 : No items for checkboxes are shown

我在以下代码中遇到了alertdialog.builder的问题:publicvoidshowSettingsBox(){finalCharSequence[]items={"Item1","Item2","Item3"};finalbooleanchecked[]=newboolean[]{false,false,false};AlertDialog.Builderbuilder=newAlertDialog.Builder(fLabyrinthGame);builder.setMessage(fMessage).setCancelable(false).setMultiChoice

配置局域网IP之No alive nodes found in your cluster

问题描述自己在本地搭建了Windows版本的elasticsearch-5.5.2和kibana-5.5.2。未曾修改config/elasticsearch.yml配置文件,启动elasticsearch和kibana之后,一切正常。也就是说,http://127.0.0.1:9200/和http://127.0.0.1:5601/都能正常访问。创建索引、文档也没问题。但是,在PHP开发的项目中使用“elasticsearch/elasticsearch”:“6.7.2”包操作本地的elasticsearch时,报以下错误:NoNodesAvailableExceptioninStaticN