Android App编译未生成包资源 [英] Android App Compile Not Generating Package Resources

查看:123
本文介绍了Android App编译未生成包资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试编译Xamarin.Android应用时,出现编译错误:

When attempting to compile my Xamarin.Android app I get the compile error:

错误3文件"obj \ Debug \ android \ bin \ packaged_resources"不存在. MyApp.UI.Droid

Error 3 The file "obj\Debug\android\bin\packaged_resources" does not exist. MyApp.UI.Droid

在我进行了一些更改(添加了一些新类-不记得它是什么)之后,发生了此错误.但是我没有更改任何项目设置,也没有删除obj文件夹中的实际文件.

This error occurred after I made some changes (added some new classes - cannot remember what it was). But I didn't change any project settings, nor go delete actual files in the obj folder.

此错误的原因是什么,我该如何解决?

What is the cause of this error and how can I fix this?

一些有用的信息:

  • 该项目是跨平台PCL项目-核心,Android和iOS项目
  • 该项目使用MVVM Cross

推荐答案

我遇到了相同的问题.确保您的资源文件不包含任何特殊字符

I encountered the same issue. Ensure that your resource files do not include any special characters

您可能遇到的实际错误是:

The actual error you may be encountering is:

Invalid file name: must contain only [a-z0-9_.]

在Visual Studio中更改构建输出的详细程度,以查看更好的日志输出.

Change your build output verbosity in visual studio to see better log output.

这篇关于Android App编译未生成包资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆