Xamarin Forms Android Jar Binding Issue on Release Build

Steven Kwok 1 Reputation point
2021-01-09T07:32:57.807+00:00

We are building an app that can connect to bluetooth printer. We can bind the JAR refer to Microsoft Doc from the printer vendor Jar download link and successfully build and run on Debug mode.

But when we do Release build, it show the below error and fail com.android.tools.build.bundletool.model.exceptions.BundleFileTypesException$FileUsesReservedNameException: File 'root/res/values/DzPrinter_config.xml' uses reserved file or directory name 'res'.

We try to change the Jar from EmbeddedJar to InputJar which can successfully build but apps will show class not found exception.

Any idea on how to solve this issue?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,378 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.