How to debug aab with Play Asset Delivery #1477
-
|
Hello, I've packaged the aab for Google Play and I want to debug Play Asset Delivery part of the code. How am I going to debug it in IntelliJ? Thanks so much! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
|
There are a few suggestions from Android on how you can actually test play asset delivery: If you build using aab-debug then you should find when you start up the application on the device manually, it will try to connect to a debugger instance, so you can then kick off the 'remote debug' connection from the IDE. thanks |
Beta Was this translation helpful? Give feedback.
-
|
I'm trying to figure out a way to integrate PAD into Starling's AssetManager's Class. It can be quite hard to do this without a proper debugger... So the codebase could work for both iOS and Android. |
Beta Was this translation helpful? Give feedback.
-
|
There are commands to be typed on CMD, inorder to test debug.aab. Following are the steps: 1- Set environment variable: Go to windows search, and type environment variables, a dialog will appear, select path from system variables, click edit, add jdk path and click ok for all dialogs. 2- Now generate debug bundle. Locate the path. Add bundle tools.jar file. You can fetch it from internet. Type cmd on path of this folder. 3- use this command on cmd: java -jar bundletools.jar build-apks --local-testing --bundle=app-debug.aab --output=apk.apks 4- then use this command: java -jar bundletools.jar install-apks --apks=apk.apks --adb="C:\Users\ApptrickTechnologies\AppData\Local\Android\Sdk\platform-tools\adb.exe" Make sure your device is connected through adb to the system. This will generate the apk and run it in device. That is how dynamic assets will be fetched in debug mode |
Beta Was this translation helpful? Give feedback.
There are a few suggestions from Android on how you can actually test play asset delivery:
https://developer.android.com/guide/app-bundle/test
https://developer.android.com/guide/playcore/feature-delivery/on-demand#local-testing
If you build using aab-debug then you should find when you start up the application on the device manually, it will try to connect to a debugger instance, so you can then kick off the 'remote debug' connection from the IDE.
thanks