-
Notifications
You must be signed in to change notification settings - Fork 12
Android.Indoor: No resource found (@style/AppTheme) #17
Comments
@heypiotr Some additional information: There are other AndroidManifest.xml files in the obj directory. The difference is that these other files do not include the |
@heypiotr I was able to resolve the issue above by declaring a theme named
This seems to work, but I am still wondering whether you could prevent this theme from appearing in the manifest. I've seen other packages that do not include such a theme. Now I am encountering a new issue: The Proximity and Indoor binding NuGet packages include duplicate libraries (e.g.,
The error appears to result from duplicate Kotlin types being included. You can reproduce this error by adding the Estimote Proximity NuGet to the Any thoughts on how we can proceed such that both Proximity and Indoor NuGets can be included? For example, can we pull out the common JARs into a separate NuGet that is referenced from both Proximity and Indoor bindings? |
I think I recall running into the same problem when building these bindings. I can see I have the same "solution" in my example app: … that is, I went ahead and defined the @style/AppTheme that the compiler says is missing. It was a few months ago, but I think I concluded that the native Android Indoor SDK for some reason depends on this value—most likely by mistake. (And we never found out about this, because Android Studio generates this value by default. Whereas Visual Studio does not.) The proper solution here would be to remove this from the native Android Indoor SDK, I'll see if we can do that. (For comparison, my Android Proximity bindings example doesn't even have the styles.xml file: https://github.com/Estimote/Xamarin-Bindings/tree/master/ExampleApps/Example.Android.Proximity/Resources/values) |
@heypiotr That makes sense. Any thoughts on how we can support the inclusion of both Proximity and Indoor NuGets, per my other comments above? We do not intend to use them concurrently in the app at runtime, but we need to have the option to run one or the other. |
@heypiotr I believe I've figured this out. I'll post here in a bit with a potential solution. |
@heypiotr I just added the indoor location bindings for Android to my project, and when I recompiled I got an error pointing to an invalid AndroidManifest.xml file that had been added to the obj directory. Please see the attached screen shot:
Do you have any ideas why this manifest is being added to the output? For example, was it accidentally included in the NuGet? Any other ideas?
The text was updated successfully, but these errors were encountered: