铬ARC焊机JavaScript控制台插件没有定义 [英] chrome ARC-Welder javascript console plugin not defined
问题描述
我安装了ARC_Welder来测试运行我的android应用程序。应用程序运行,但我试图获取日志。我阅读了这篇文章: https://developer.chrome.com/apps/getstarted_arc 。
在JavaScript控制台(chrome:// inspect /#apps)中尝试运行plugin.shell('adbd')。
但是我得到这个错误:
未捕获的ReferenceError:插件未定义
运行时发生同样的事情:plugin.shell('logcat'); / p>
我不是一个Chrome开发人员。请帮助我了解我错在哪里。
我刚刚有同样的问题,您提到的页面上的说明是正确,但不是很清楚。
您应该:
- 打开您的调试APK在ARC焊接器中运行并运行它
- 在Android Studio中打开logcat,(或者您通常用来查看logcat的工具)。并在地址栏中输入chrome:// inspect /#apps。
- 希望您看到您的应用程序名称列出,点击您的应用程序的检查链接。 b $ b
- 在显示的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:
- Open your debug APK in ARC Welder and run it
- Open logcat in Android Studio, (or what ever tool you normally use to view logcat).
- Open Chrome and type "chrome://inspect/#apps" in the address bar
- Hopefully you see your App name listed, click the 'inspect' link for your app.
- In the Javascript Console that appears type "plugin.shell('adbd')" and press enter.
- 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屋!