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

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

问题描述

尝试编译我的 Xamarin.Android 应用程序时出现编译错误:

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

错误 3 文件objDebugandroidinpackaged_resources"不存在.MyApp.UI.Droid

Error 3 The file "objDebugandroidinpackaged_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天全站免登陆