Android升级目标版本后,应用程序不再编译。

huangapple go评论71阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2023年5月11日 01:43:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76221259.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定