question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ERROR] Debbuging Via USB Android AIR App

See original GitHub issue

You saved me time with the command:as3mxml.saveSessionPassword. Everything works in the AIR Emulator, the build task calls the sign in password task and finally debug. Don’t have to keep typing the .p12 password anymore.

My new issue is debugging via USB in my Android phone. I carefully followed the steps in https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/Debug-an-Adobe-AIR-application-running-on-a-mobile-device-with-Visual-Studio-Code.

This is my configuration:

image image

I run the Install & Attach Adobe AIR (Android) task, and this is the error:

image

As the error complains about the applicationID, i changed my app’s name in asconfig.json to follow Android’s required name with com.username.AppName, and then changed applicationID in launch.json. The app’s name was previously just MyApp.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
joshtynjalacommented, Jan 19, 2022

Just use the same certificate that you created in FlashDevelop with CreateCertificate.bat. You don’t need to create a new one.

0reactions
angelhdzmultimediacommented, Jan 19, 2022

When you debug your app on your desktop computer using the AIR Debug Launcher (which I assume you are referring to when you say “AIR Emulator”), you should not need a password at all. You can simply run the appropriate “compile debug” task, rather than “package debug”. You only need to package if you need an .apk/.ipa/.exe file, such as when you are installing on a device.

If you installed an app on your Android device successfully from FlashDevelop, I assume that you already have a perfectly good certificate. You shouldn’t need to use adt to create a certificate file if you already have one.

In Flash Develop, I execute the CreateCertificate.bat and it creates it. Oh, snaps. That’s the issue! I haven’t created it in VScode!

Is there a script to do that, or should I navigate to AIR SDK’s directory and call some adt command there?

Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure on-device developer options - Android Developers
... configure system behaviors that help you profile and debug your app performance. For example, you can enable debugging over USB, capture a...
Read more >
What Is USB Debugging Mode on Android? How to Enable It
USB Debugging allows an Android device to communicate with a computer that's running the Android SDK in order to use advanced operations.
Read more >
Not able to debug app on android device - Android Studio 2.0
USB Debugging off : Start Developer Option of your devices; Switch On USB Debugging. 2.In Android-Studio : File -> Invalidate Caches / Restart....
Read more >
Error "Could not find an Android device..." | Flash CS5, CS5.5
When you publish an AIR for Android application in Flash CS5 or CS5.5, ... Turn USB Debugging off and on by following these...
Read more >
Enabling USB Debugging on an Android Device - Embarcadero
Enable the USB Debugging option under Settings > Developer options. For Android 4.2 and newer, Developer options is hidden by default; use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found