铬ARC焊机JavaScript控制台插件没有定义 [英] chrome ARC-Welder javascript console plugin not defined

查看:123
本文介绍了铬ARC焊机JavaScript控制台插件没有定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了ARC_Welder来测试运行我的android应用程序。应用程序运行,但我试图获取日志。我阅读了这篇文章: https://developer.chrome.com/apps/getstarted_arc



在JavaScript控制台(chrome:// inspect /#apps)中尝试运行plugin.shell('adbd')。



但是我得到这个错误:
未捕获的ReferenceError:插件未定义



运行时发生同样的事情:plugin.shell('logcat'); / p>

我不是一个Chrome开发人员。请帮助我了解我错在哪里。

解决方案

我刚刚有同样的问题,您提到的页面上的说明是正确,但不是很清楚。



您应该:


  1. 打开您的调试APK在ARC焊接器中运行并运行它

  2. 在Android Studio中打开logcat,(或者您通常用来查看logcat的工具)。并在地址栏中输入chrome:// inspect /#apps。
  3. 希望您看到您的应用程序名称列出,点击您的应用程序的检查链接。 b $ b
  4. 在显示的Javascript控制台中输入plugin.shell('adbd'),然后按Enter键。 现在回到Android Studio,您应该看到一个负载logcat中的日志消息,根据您的应用名称进行过滤,希望您能够顺利进行。


I installed ARC_Welder to test run my android apps. App runs , but I was trying to get logs. I read this article : https://developer.chrome.com/apps/getstarted_arc .

Tried running -- plugin.shell('adbd') in JavaScript console (chrome://inspect/#apps) .

But i'm getting this error : Uncaught ReferenceError: plugin is not defined

Same thing happened when tried running : plugin.shell('logcat');

I'm not a chrome javascript developer. please help me understand where i am wrong..

解决方案

I just had the same issue, the instructions on the page you mentioned are correct, but not very clear.

You should:

  1. Open your debug APK in ARC Welder and run it
  2. Open logcat in Android Studio, (or what ever tool you normally use to view logcat).
  3. Open Chrome and type "chrome://inspect/#apps" in the address bar
  4. Hopefully you see your App name listed, click the 'inspect' link for your app.
  5. In the Javascript Console that appears type "plugin.shell('adbd')" and press enter.
  6. Now go back to Android Studio and you should see a load of log messages in the logcat, filter by your app name and hopefully you are good to go.

这篇关于铬ARC焊机JavaScript控制台插件没有定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆