英文:
After upgrading the android Target Version app no longer compiles
问题
After upping the android target version I had to update a bunch of NUGET packages. Now After upgrading a bunch of things during troubleshooting, I can't get past this list of errors:
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(1482): error APT1000: Attribute "android:translationX" has already been defined
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(1486): error APT1000: Attribute "android:translationY" has already been defined
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(1489): error APT1000: Attribute "android:translationZ" has already been defined
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(5): error APT1000: Found tag id where item is expected
1>D:\...\project.Android\obj\Debug1\lp1\jl\res\values\values.xml(4): error APT1000: Found tag id where item is expected
1>D:\...\project.Android\obj\Debug1\lp9\jl\res\values\values.xml(4): error APT1000: Found tag id where item is expected
1>D:\...\project.Android\obj\Debug1\lp4\jl\res\values\values.xml(4): error APT1000: Found tag id where item is expected
这些都是生成的文件,所以我不确定接下来该怎么做。一些搜索显示确保所有项目的Xam-Forms版本匹配,它们是匹配的。我还尝试了正常的关闭VS,删除项目中的bin和obj,清理和编译。不知道该往哪个方向前进,任何指导将不胜感激。
英文:
After upping the android target version I had to update a bunch of NUGET packages. Now After upgrading a bunch of things during troubleshooting, I can't get past this list of errors:
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(1482): error APT1000: Attribute "android:translationX" has already been defined
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(1486): error APT1000: Attribute "android:translationY" has already been defined
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(1489): error APT1000: Attribute "android:translationZ" has already been defined
1>D:\...\project.Android\obj\Debug1\lp6\jl\res\values\values.xml(5): error APT1000: Found tag id where item is expected
1>D:\...\project.Android\obj\Debug1\lp1\jl\res\values\values.xml(4): error APT1000: Found tag id where item is expected
1>D:\...\project.Android\obj\Debug1\lp9\jl\res\values\values.xml(4): error APT1000: Found tag id where item is expected
1>D:\...\project.Android\obj\Debug1\lp4\jl\res\values\values.xml(4): error APT1000: Found tag id where item is expected
These are all generated files, so I'm not sure where to go from here. Some searching showed making sure all projects Xam-Forms version matched, which they do. I also tried the normal close VS, delete bin&obj in project, clean and compile. At a loss any direction would be much appreciated.
答案1
得分: 1
我能够在检查了所有 NuGet 包并手动确认所有版本与要求匹配以及安装了所有必需的依赖项之后,成功移除了这些错误。然后一切都正常工作了。
英文:
I was able to remove those errors after going through all the nuget packages and manually verifying all the versions matched up with the requirements and all required dependencies where installed. Then everything worked.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论