Hi,

I'm using 1.9.1 of Monodroid on my Win7 box (using VS2010 Ultimate). I'm
trying to get the tab view example to build and deploy. The build is fine,
but the deploy fails with

_CreateBaseApk:
  C:\Android\android-sdk\platform-tools\aapt.exe package -f -M
obj\Debug\android\AndroidManifest.xml -J
C:\Users\paul\AppData\Local\Temp\wucgn55e.vk2 --custom-package tab.view -F
obj\Debug\android\bin\packaged_resources -S "C:\Users\paul\Documents\Visual
Studio 2010\Projects\HelloTabActivity\HelloTabActivity\obj\Debug\res" -I
C:\Android\android-sdk\platforms\android-8\android.jar
obj\Debug\android\AndroidManifest.xml(4): error : No resource found that
matches the given name (at 'label' with value '@string/HelloTab').
[C:\Users\paul\Documents\Visual Studio
2010\Projects\HelloTabActivity\HelloTabActivity\HelloTabActivity.csproj]
obj\Debug\android\AndroidManifest.xml(8): error : No resource found that
matches the given name (at 'label' with value '@string/HelloTab').
[C:\Users\paul\Documents\Visual Studio
2010\Projects\HelloTabActivity\HelloTabActivity\HelloTabActivity.csproj]
Done Building Project "C:\Users\paul\Documents\Visual Studio
2010\Projects\HelloTabActivity\HelloTabActivity\HelloTabActivity.csproj"
(SignAndroidPackage target(s)) -- FAILED.

Build FAILED.

"C:\Users\paul\Documents\Visual Studio
2010\Projects\HelloTabActivity\HelloTabActivity\HelloTabActivity.csproj"
(SignAndroidPackage target) (1) ->
(_CreateBaseApk target) ->
  obj\Debug\android\AndroidManifest.xml(4): error : No resource found that
matches the given name (at 'label' with value '@string/HelloTab').
[C:\Users\paul\Documents\Visual Studio
2010\Projects\HelloTabActivity\HelloTabActivity\HelloTabActivity.csproj]
  obj\Debug\android\AndroidManifest.xml(8): error : No resource found that
matches the given name (at 'label' with value '@string/HelloTab').
[C:\Users\paul\Documents\Visual Studio
2010\Projects\HelloTabActivity\HelloTabActivity\HelloTabActivity.csproj]

    0 Warning(s)
    2 Error(s)

Time Elapsed 00:00:20.08

The part of the code that defines the @string/HelloTab is this

    [Activity(MainLauncher = true, Label = "@string/HelloTab", Theme =
"@android:style/Theme.NoTitleBar")]
    public class HelloTabWidget : TabActivity
    {

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);
            TabHost.TabSpec spec;
            Intent intent;
            intent = new Intent(this, typeof(artistActivity));
            intent.AddFlags(ActivityFlags.NewTask);

            spec = TabHost.NewTabSpec("artists");
            spec.SetIndicator("Artists",
Resources.GetDrawable(Resource.Drawable.ic_tab_artists));
            spec.SetContent(intent);
            TabHost.AddTab(spec);

            intent = new Intent(this, typeof(albumsActivity));
            intent.AddFlags(ActivityFlags.NewTask);

            spec = TabHost.NewTabSpec("albums");
            spec.SetIndicator("Albums",
Resources.GetDrawable(Resource.Drawable.ic_tab_artists));
            spec.SetContent(intent);
            TabHost.AddTab(spec);

            intent = new Intent(this, typeof(songsActivity));
            intent.AddFlags(ActivityFlags.NewTask);

            spec = TabHost.NewTabSpec("songs");
            spec.SetIndicator("Songs",
Resources.GetDrawable(Resource.Drawable.ic_tab_artists));
            spec.SetContent(intent);
            TabHost.AddTab(spec);

            TabHost.CurrentTab = 2;
        }
    }

Any ideas where I'm going wrong?

Thanks

Paul
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to