草庐IT

run_callbacks

全部标签

android - Expo with Android Studio 模拟器错误 : "Error running adb: This computer is not authorized to debug the device"

我正在尝试将AndroidStudio模拟器连接到我的expo应用程序,但我收到此错误消息:Couldn'tstartprojectonAndroid:Errorrunningadb:Thiscomputerisnotauthorizedtodebugthedevice.PleasefollowtheinstructionsheretoenableUSBdebugging:https://developer.android.com/studio/run/device.html#developer-device-options.IfyouareusingGenymotiongotoSet

android - phonegap-plugin-facebook-connect : no callback function after FB. 登录

你好,我的phonegabfacebook插件有问题,FB.login似乎可以在安装Facebook应用程序的情况下正常工作,它要求我授权我的应用程序,但在我确认问题后它没有调用我的回调函数和似乎卡住了。我在控制台中有这个日志07-1214:29:41.742:D/DroidGap(10814):传入结果07-1214:29:41.742:D/DroidGap(10814):请求代码=6420607-1214:29:41.742:D/DroidGap(10814):我们有一个回调将这个结果发送给07-1214:29:41.750:D/DroidGap(10814):恢复应用我正在使用c

安卓布局: running second layout pass

我正在扩展TextView并加载自定义字体。我在ListView中使用此自定义TextView。当我滚动列表时,有时会收到以下调试消息requestLayout()在布局期间被com.sample.CustomTextView{52afae4cV.ED..........ID0,27-27,44#7f060074app:id/some_id}不正确地调用:运行第二布局传递publicclassCustomTextViewextendsTextView{privateFontTypemFontType;publicCustomTextView(Contextcontext,Attribu

android - 解析 : Receive callback when GCM registration is complete

我想将GCMdeviceToken发送到我的服务器,以便我可以使用Parse的RESTAPI启动推送通知。这一切都有效,只是我无法在deviceToken可用时可靠地获取它。当我注册应用程序以在广播channel上接收推送通知时,我检查了done()回调中的deviceToken。但是,它通常尚未设置。我正在寻找一种在deviceToken可用时获取它的方法,这样我就可以避免轮询或等到应用重新启动才能发送推送通知。我尝试过的在channel注册回调中获取deviceTokenParse.initialize(this,applicationId,clientKey){ParsePush

android - Volley 不适用于 Gradle 2.0 和 Instant run

我最近将AndroidStudio更新到了2.0版:Beta7。我正在尝试使用InstantRun,我刚刚安装了Gradle2.0。但是现在由于与bintray.gradle相关的错误,我无法编译我的项目编译时出现以下错误:Error:Cannotconfigurethe'publishing'extensionafterithasbeenaccessed.调试器错误:Error:FAILURE:Buildfailedwithanexception.*Where:Script'C:\Project\AtkApp\volley\bintray.gradle'line:43*Whatwen

android - 使用 Instant Run 时出现 VerifyError

VerifyError在到达XpInsetDrawable.create(Drawable,int)(下面的代码)时抛出。当不使用InstantRun时,不会发生这种情况。我正在使用AndroidStudio2.0.0和gradle构建插件2.0.0。在SDK22上测试。在SDK19模拟器上运行时,整个模拟器会重新启动。我正在寻找“禁用InstantRun”以外的解决方案。异常(整个堆栈跟踪不相关)Causedby:java.lang.VerifyError:Verifierrejectedclassnet.xpece.android.support.preference.XpInse

android - activity.isFinishing 语句中的 BadTokenException : Unable to add window -- token null is not valid; is your activity running?

如果用户仍在当前Activity中,我有一个需要显示的弹出窗口,几秒钟后。我实现了stament检查Activity是否未完成/销毁然后显示弹出窗口,它工作正常,周末用户:)(从一个Activity慢慢点击到另一个Activity)但在高压测试中(Activity正在重新创建,完成,快速移动形式Activity到Activity)给我那个错误:E/UncaughtException:android.view.WindowManager$BadTokenException:Unabletoaddwindow--tokennullisnotvalid;isyouractivityrunni

android - react-native:无法识别命令 `run-android`。可能是由 npm install 引起的

最近我开始遇到这个问题,当我安装一个react-native包时(例如:react-navigation)到我的项目中,一大堆包都被删除了(我认为包括react,react-native)。然后当我尝试运行命令“run-android”时,它说无法识别。我最近更新到最新的npm和react-native-cli。“npminstall”有问题吗?还是react-native?nodeversion:8.1.2react-native-cli:2.0.1react-native:0.45.1react-navigation:1.0.0-beta.11以下是重新创建的步骤:Step1-Cr

android - PhoneGap 安卓插件 : Success & Failure Callback not getting called

我开发了一个AndroidPhoneGap插件。插件已成功调用,但未调用回调。我不知道我错过了什么。有没有人知道当回调没有被调用时会出现什么问题?以下是我的代码:JS文件内容:varSharedPreferencePlugin=function(){};SharedPreferencePlugin.prototype.getvalues=function(content,success,fail){returnPhoneGap.exec(function(args){console.log("successcalledfromplugin'sjsfile");},function(ar

java - 错误 : Unable to run the app with Firebase jar included

渐变输出::app:proguardReleaseWarning:org.shaded.apache.commons.logging.impl.ServletContextCleaner:can'tfindsuperclassorinterfacejavax.servlet.ServletContextListenerWarning:com.shaded.fasterxml.jackson.databind.ext.DOMSerializer:can'tfindreferencedclassorg.w3c.dom.bootstrap.DOMImplementationRegistryW