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.

The plugin doesn't work on Android 6.0 & 7.0

See original GitHub issue

When I am trying to start the sample App in debug mode for Android 7.0 or 6.0 I am getting this error:

ADB0010: Mono.AndroidTools.InstallFailedException: Unexpected install output: Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl498235248.tmp/base.apk (at Binary XML file line #26): <receiver> does not have valid android:name]

   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName) in C:\A\1\34\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 350
   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass100_0.<InstallPackage>b__0(Task`1 t) in C:\A\1\34\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 803
   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at AndroidDeviceExtensions.<PushAndInstallPackageAsync>d__12.MoveNext() in C:\A\1\34\s\External\androidtools\Xamarin.AndroidTools\Devices\AndroidDeviceExtensions.cs:line 206
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at AndroidDeviceExtensions.<PushAndInstallPackageAsync>d__12.MoveNext() in C:\A\1\34\s\External\androidtools\Xamarin.AndroidTools\Devices\AndroidDeviceExtensions.cs:line 223
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Xamarin.Android.Tasks.FastDeploy.<InstallPackage>d__101.MoveNext() in /Users/builder/azdo/_work/2/s/xamarin-android/external/monodroid/tools/msbuild/Tasks/FastDeploy.cs:line 338
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Xamarin.Android.Tasks.FastDeploy.<InstallPackage>d__101.MoveNext() in /Users/builder/azdo/_work/2/s/xamarin-android/external/monodroid/tools/msbuild/Tasks/FastDeploy.cs:line 355
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at Xamarin.Android.Tasks.FastDeploy.<RunTaskAsync>d__96.MoveNext() in /Users/builder/azdo/_work/2/s/xamarin-android/external/monodroid/tools/msbuild/Tasks/FastDeploy.cs:line 212		 	0	

Starting it on Android 8.0 and above versions works fine.

To Reproduce Steps to reproduce the behavior:

  1. Get the sample project
  2. Try to build the App for Android 7.0 or 6.0

Platform:

  • OS: Android
  • Version 6.0 & 7.0

Smartphone:

  • Device: Pixel 2 XL Emulator & Samsung Tablet
  • OS: Android 6.0 & 7.0

Additional context I am trying to use this package for my App and I need to be able to build it for Android 6.0 and above. How can I make it Work?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
tombrenneckecommented, Aug 30, 2021

I’ve tested Version 9.0.0-preview04 on Android 6 to 11 and had no problem with my Application. Thanks for your effort : )

1reaction
NicoaraBogdancommented, Aug 27, 2021

Version 9.0.0-preview04 seems to work as expected for Android 7

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve This plugin is not supported on Android
A common reason why you see This plugin is not supported on Android is you have encountered content that requires Adobe Flash Player....
Read more >
cordova-plugin-nativeaudio no longer works in Android 7 ...
This has been working flawlessly in Android 6.0.1. However, my tablet updated to 7.0 and all the audio stopped working. It does not...
Read more >
Known issues with Android Studio and Android Gradle Plugin
This page tracks known issues with Android Studio Giraffe and Android Gradle plugin 8.1.0. If you experience an issue not already included here, ......
Read more >
Zebra Older android version | Remote Control
I have device zebra tc75x under 6 and 7 (android +) with mobicontrol on version 13.4.3449 and all works without problem.
Read more >
Media Plugin 6.0.0 & Media Capture Plugin 4.0.0 Released!
We are happy to announce that we have just released an update for cordova-plugin-media & cordova-plugin-media-capture!
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