开发者

How do I add multiple java classes into a Mono for Android project?

开发者 https://www.devze.com 2023-04-01 12:47 出处:网络
I have been working on this google map sample using the Mono for Android evaluation version. I now what to add overlays which requires adding a second java class. When i try to add a new java class, e

I have been working on this google map sample using the Mono for Android evaluation version. I now what to add overlays which requires adding a second java class. When i try to add a new java class, even a simple empty class, to either the bot开发者_高级运维tom of the existing .java file, or a new .java file (with a build action of AndroidJavaSource), I get an error packaging the project.

Help? What am I missing? Is there a limitation to the evaluation version of Mono for Android that isn't documented? Do I need to register the new class somewhere?

Edit:

The error is: "illegal character: \65279"


As answered here, the issue is a "bad" (in javac.exe's point of view) byte order mark in file. The file .java was created by from a text file created via Visual Studio.

I made a copy the .java file that I source from the sample and made the necessary alterations and it worked. TA DA!

0

精彩评论

暂无评论...
验证码 换一张
取 消