Skip to content

[BUG] Can't debug a .net 8 for android app on a fireTV when running from vscode on mac. #2011

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
TOberlie opened this issue May 12, 2025 · 4 comments
Assignees
Labels
area-maui bug Something isn't working

Comments

@TOberlie
Copy link

Describe the Issue

We have a fireTV app which is written in .net 8 for android. I recently had to switch from using Visual Studio 2022 on pc to vscode on a mac. I am unable to run and debug the app from vscode. This issue only happens with .net 8 and only on a firetv stick. If i try running a .net 8 for android app on a mobile android device, it works fine whether i use usb debugging or wireless debugging. If I try running a test app written in kotlin from android studio, I can run and debug it on the firetv device. The only way I am able to run the .net 8 app on the firetv device is by attempting to run it from vscode, deleting the app that gets installed from the firetv, then using adb to manually install the signed apk on the firetv. I’ve also tried using an android tv emulator, but it almost always freezes up and when it doesn’t freeze it fails to fetch data from our api so i am unable to reliably test the app. One thing I’ve noticed is a message in the build output instructing me to start sdb and connect my device, but from what I understand sdb is meant for tizen apps.

Steps To Reproduce

Create a .net for android application and attempt to run and debug it from vscode.

Expected Behavior

The app should launch and you should be able to set breakpoints

Environment Information

.net sdk:
8.0.405

workloads:
Installed Workload Id Manifest Version Installation Source

maui-ios 8.0.100/8.0.100 SDK 8.0.400
maui-android 8.0.100/8.0.100 SDK 8.0.400
ios 18.0.8319/8.0.100 SDK 8.0.400
maui 8.0.100/8.0.100 SDK 8.0.400
android 34.0.147/8.0.100 SDK 8.0.400

android studio:
Android Studio Ladybug Feature Drop | 2024.2.2 Patch 2
Build #AI-242.23726.103.2422.13103373, built on February 21, 2025
Runtime version: 21.0.5±13047016-b750.29 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 15.4
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 3072M
Cores: 14
Metal Rendering is ON
Registry:
ide.experimental.ui=true
i18n.locale=

jdk:
openjdk version “17.0.14” 2025-01-21 LTS
OpenJDK Runtime Environment Microsoft-10800294 (build 17.0.14+7-LTS)
OpenJDK 64-Bit Server VM Microsoft-10800294 (build 17.0.14+7-LTS, mixed mode, sharing)

android sdks:
Android 15
Android 14

Android sdk build tools:
35.0.1
35.0.0
34.0.0

Android sdk command line tools:
17.0
11.0

@TOberlie TOberlie added the bug Something isn't working label May 12, 2025
@srdjanjovcic srdjanjovcic added the triaged The issue has been triaged label May 12, 2025
@mauroa mauroa removed the triaged The issue has been triaged label May 12, 2025
@mauroa
Copy link
Member

mauroa commented May 21, 2025

Hi @TOberlie,

We need to make sure we understand your use case before being able to help.

Do you see the FireTV stick in the list of launch targets before attempting to launch and debug the app? Before doing F5, you are supposed to select your startup project and launch target, by clicking on the "{}" (language status item) at the bottom right of VS Code (while having a .cs file opened).

As far as I understand, that's your real issue. If not, what happens that prevents you to run and debug your app? Are you getting a build error, a deploy error, a debug error?

If you can be more specific on what is exactly failing for you, it would be helpful.

Also, sharing the build output from the VS Code terminal might help as well.

Thanks

@mauroa mauroa added the needs-more-info Needing more information, waiting on OP label May 21, 2025
@TOberlie
Copy link
Author

TOberlie commented May 22, 2025 via email

@github-actions github-actions bot removed the needs-more-info Needing more information, waiting on OP label May 22, 2025
Copy link

@mauroa, the 'needs-more-info' label has been removed upon receiving further response from the original bug filer.

@TOberlie
Copy link
Author

TOberlie commented May 27, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-maui bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants