Skip to content
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

Original attribute defined here #7

Closed
brepetti opened this issue Sep 18, 2019 · 7 comments
Closed

Original attribute defined here #7

brepetti opened this issue Sep 18, 2019 · 7 comments

Comments

@brepetti
Copy link

After following the directions and installing the necessary nugets I was told to install, we still cannot compile. We get a ton of errors for "Original attribute defined here."

Any suggestions? The errors do not say where they are being spawned from. They started coming up about the same time we added the AndroidX.AppCompat nuget.

Any help would be appreciated.

image

@brepetti
Copy link
Author

Bueller?

@davidevosti
Copy link

We got the same issue. Somewhere I read that it's caused by a double inclusion of AppCompat (from AndroidX libraries and Xamarin.Android.Support.v7.AppCompat) but Xamarin.Android.Support.v7.AppCompat can't be removed since Xamarin.Forms depends on it... I'm now trying to remove some old Android.Support packages and see if I get some progress.

@brepetti
Copy link
Author

brepetti commented Oct 3, 2019

I noticed there was a new pre release out today. prelease 5.

I started over and went through the steps and it looks to be working now. The process was a lot easier as well. I was able to edit the csproj file and add all the needed references. The output text included a copy/paste method.

I had also updated my visual studio and enabled the AndroidX migrator. Not sure if that did anything because I did not see anything directly related to that.

I was able to run a debug build. I will be testing through the app today and hopefully testing a release build as well.

@davidevosti
Copy link

davidevosti commented Oct 8, 2019

I think I figured it out.

The iOS and Android projects weren't migrated to use PackageReference and were still using the old nuget package.config file.

After migrating to PackageReference (and got rid of all the explicit inclusion of all support libraries) the projects are now compiling fine.

@Redth Redth transferred this issue from xamarin/XamarinAndroidXMigration Nov 25, 2019
@Redth Redth closed this as completed Dec 5, 2019
@moljac
Copy link
Member

moljac commented Dec 19, 2019

@davidevosti @brepetti @davidevosti

Guys are you using aapt2?

I just ran into this issue with our tests. I managed to solve it by turning on aapt2

@moljac
Copy link
Member

moljac commented Dec 19, 2019

@davidevosti @brepetti @davidevosti

I will repoen this issue, so you can provide us feedback, please.

@moljac moljac reopened this Dec 19, 2019
@moljac
Copy link
Member

moljac commented Jan 3, 2020

Closing this one, due to lack of feedback.

@moljac moljac closed this as completed Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants