简体   繁体   中英

Capture app console.log from an Android alpha/beta release?

Working on a Cordova app:

We are trying to find a way to capture JSON results of an in-app transaction. In debug mode, we have access to the console, but in-app billing is disabled; when we've pushed an alpha or beta release to our GDC, the in-app billing works but we do not have access to the console. We use variations of pop-up alerts but this is a flaky solution. The main annoyance stems from having to build & upload to GDC every time we want to test new things that have to do with in-app billing. Surely there is something we're missing.

Is there a way to read the console (or any output of that sort) from a built Android app?

First of all plug your device to computer, from Android Studio, choose Tools > Android Device Monitor or click the Android Device Monitor icon. This will show your device and apps running on it. You can filter type of logs it is showing (because at moment device shows lot of logs).

But if you use command line then , in the SDK tools/ directory, enter the following command :
monitor
It will also open monitor tool. Here is documentation to this tool.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM