[mono-android] package R does not exist
Jonathan Pryor
jonp at xamarin.com
Tue Jan 17 01:49:51 UTC 2012
On Jan 16, 2012, at 8:10 PM, digitalml wrote:
> I'm calling a .java file via JNI that is using a resource path via
> R.path.resource. In regular java this works fine because R resolves to the
> package. In MonoDroid this is not working because R does not resolve to the
> MonoDroid package. I've tried replacing R in the .java file with the
> MonoDroid package name but get errors with that as well.
Within your build output, look at obj\Debug\android\src\R.java (or some other R.java file somewhere under obj\Debug\android\src). That is the `aapt`-generated R class for use from Java code; read it to determine the `package` that the type is within.
- Jon
More information about the Monodroid
mailing list