草庐IT

remote_method

全部标签

android - java.lang.NoSuchMethodError : No virtual method setTokenProvider 错误

每当我将com.google.firebase:firebase-firestore:19.0.0添加到Gradle并运行应用程序时,就会出现以下错误。E/AndroidRuntime:FATALEXCEPTION:mainProcess:meter.meter,PID:13588java.lang.NoSuchMethodError:NovirtualmethodsetTokenProvider(Lcom/google/firebase/internal/InternalTokenProvider;)VinclassLcom/google/firebase/FirebaseApp;o

android - 启动错误 : Failed to connect to remote VM

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:EclipseError:“FailedtoconnecttoremoteVM”我正在使用Eclipse涉足Android开发。一切顺利,但最近,我无法再使用调试了。当我单击“调试为”-“Android应用程序”时,应用程序构建正常,安装正常,但Android设备(无论是实际设备还是模拟器,都没有区别)等待“等待调试器”和一个“强制关闭”按钮。在控制台中,我得到类似的东西:-[2011-08-2611:59:59-Sunrise]Startingactivitycom.sr.sunrise.Sunriseon

java - "Method call expected"int数组的length方法错误

AndroidStudio在int数组的length()方法中引发此错误以获取其长度。如何解决? 最佳答案 尝试不使用(),像这样:arrayTrofei.length; 关于java-"Methodcallexpected"int数组的length方法错误,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/17511075/

android - 如何修复 The method startActivity(Intent) is undefined for the type new View.OnClickListener() 语法错误

我的代码有语法错误,在“getView”中我想为按钮“更新”创建一个监听器以移动到另一个Activity:@OverridepublicViewgetView(intposition,ViewconvertView,ViewGroupparent){LayoutInflaterl=(LayoutInflater)context.getSystemService(context.LAYOUT_INFLATER_SERVICE);ViewrowView=l.inflate(R.layout.temp,parent,false);TextViewtextView=(TextView)rowV

android - 构建 gradle : Could not find method packagingOptions() for arguments root Project "fasterDev"

我在应用程序中使用单个build.gradle文件。关于1.6版,它工作正常。但我想用它来更新模块的位置。applyplugin:'com.android.application'...dependencies{compile'com.google.android.gms:play-services:fp9.0.0'}这是我的build.gradle。构建.gradlebuildscript{repositories{mavenCentral()}dependencies{classpath'com.android.tools.build:gradle:2.1.0'}}applyplu

Attaching to remote docker container

Attachingtoadockercontainerisquitesimilartoattachingtoaprocess,thedifferentpartisthatyouneedtoselectthecorrespondingconnectiontypeandconnectiontarget.Youmayencounterthefollowingissueswhendebuggingwiththeattacheddockercontainer.1. Unabletofinddebuggerscriptat'/root/.vs-debugger'Thisisusuallybecauseth

javascript - react native , 'is not usable as a native method argument'

我是ReactNative的新手。在开发native模块时,我遇到了回调问题。下面是来自ReactNative的错误信息02-0517:43:26.38732301-32570/com.awesomeproject2E/ReactNativeJNI:GotJSException:Exceptioncallingobjectasfunction:abc,functionf1(){_ToastExample2.default.show('1111',_ToastExample2.default.SHORT);},72,73isnotusableasanativemethodargument

安卓工作室错误 :An existing connection was forcibly closed by the remote host

我已经在Windows中安装了android-studio。但每次重建/运行/项目时都会出现此错误。Anexistingconnectionwasforciblyclosedbytheremotehost下面是我试过的。禁用防火墙adbkill-server&&adbstart-server删除任务栏中的任何adb进程重启工作室,清理并重建非常感谢任何答案。 最佳答案 尝试从控制台运行构建任务,并检查输出是否有问题./gradleassembleDebug 关于安卓工作室错误:Anexi

Gitee推送被拒【! refs/heads/master:refs/heads/master [remote rejected] (hook declined)Done】解决方案

网上看了很多,说什么没有权限啊,内容重复的都试过了,但是!!!都没用,后来自己慢慢研究,发现了问题 第一、进gitee个人主页,点击旁边的齿轮进入设置  第二、点击邮箱管理,取消勾选,问题解决 只针对Gitee报错推送被拒,报错!   refs/heads/master:refs/heads/master   [remoterejected](hookdeclined)Done,如果是分支其他原因,网上大把的帖子

Android:来自 Android Box Remote 的按键事件

我想知道如何从Android电视盒Remote捕获按键/按钮事件?例如,当我从Remote上单击“确定”按钮时,我希望显示一个弹出菜单。我想从Remote上捕捉下一个/后退键事件。我应该使用Android的按键事件类吗?如果是,我应该如何实现它?我偶然发现了这个函数,但我无法真正理解它。@OverridepublicbooleanonKeyDown(intkeyCode,KeyEventevent){switch(keyCode){caseKeyEvent.KEYCODE_A:{//yourActioncodereturntrue;}}returnsuper.onKeyDown(key