Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

String Resources in Library Project raising exception

$
0
0

Hi,

I have a LIB with resources and a APP that consume the LIB. When the line in the LIB that utilizes a string resources executes it throws an exception resource not found.

I have tried everything on the forums.. Rebuilding\cleaning\ deleting Resource.Desginer.cs physically.. Its not working..any ideas guys????

I was using Xamarin Studio 4.2 but just upgraded to 5.0 My target android API is 17

Android.Content.Res.Resources+NotFoundException: String resource ID #0x7f040001

IN LIB RESOURCES public partial class String {

        // aapt resource value: 0x7f020001
        public static int Message = 2130837505;

        // aapt resource value: 0x7f020000
        public static int library_name = 2130837504;

        static String()
        {
            global::Android.Runtime.ResourceIdManager.UpdateIdValues();
        }

        private String()
        {
        }
    }

THE APP RESOURCE public partial class String {

        // aapt resource value: 0x7f040001
        public const int Message = 2130968577;

        // aapt resource value: 0x7f040003
        public const int app_name = 2130968579;

        // aapt resource value: 0x7f040002
        public const int hello = 2130968578;

        // aapt resource value: 0x7f040000
        public const int library_name = 2130968576;

        static String()
        {
            global::Android.Runtime.ResourceIdManager.UpdateIdValues();
        }

        private String()
        {
        }
    }

Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>