- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.9k
Closed
dotnet/android
#7637Labels
area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, DebuggingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingpartner/androidIssues for the Android SDKIssues for the Android SDKplatform/androidt/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
This is error that I get:
ADB0010: Mono.AndroidTools.InstallFailedException: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]...
https://stackoverflow.com/questions/62162640/xamarin-android-install-flags
There is same problem with xamarin.forms
Steps to Reproduce
- Create new dotnet maui application
- Set android:testOnly="true" property on application tag in android manifest
- Try to debug application
Link to public reproduction project repository
https://github.com/prostopsih/Android-TestOnly-Bug-Repro
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 9, 12, 13
Did you find any workaround?
deploy manually using following command:
adb install -t {apkFilePath}
The problem is that I can't debug my application after installing it in such way.
In android studio testOnly is set to true by default and also there is a possibility to add extra parameters on install command.
Relevant log output
No response
Metadata
Metadata
Assignees
Labels
area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, DebuggingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingpartner/androidIssues for the Android SDKIssues for the Android SDKplatform/androidt/bugSomething isn't workingSomething isn't working