Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Android
  4. error using FragmentTabHost in xamarin

error using FragmentTabHost in xamarin

Scheduled Pinned Locked Moved Android
helpcsharpandroidmobileannouncement
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 9427106
    wrote on last edited by
    #1

    hi i have added these VS2012 (xamarin C#) : 1.Xamarin.Android.Support.v4 via : Install-Package Xamarin.Android.Support.v4 -Version 20.0.0 2.android-support-v4.jar ( as AndroidJavaLibrary) --- with 634 kb 3.using Android.Support.V4.App; 4. public class Activity1 : FragmentActivity <----- i get error in Activity1 { //my codes } i get this error : The type 'Android.App.Activity' is defined in an assembly that is not referenced. You must add a reference to assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Thanks for help!

    L 1 Reply Last reply
    0
    • U User 9427106

      hi i have added these VS2012 (xamarin C#) : 1.Xamarin.Android.Support.v4 via : Install-Package Xamarin.Android.Support.v4 -Version 20.0.0 2.android-support-v4.jar ( as AndroidJavaLibrary) --- with 634 kb 3.using Android.Support.V4.App; 4. public class Activity1 : FragmentActivity <----- i get error in Activity1 { //my codes } i get this error : The type 'Android.App.Activity' is defined in an assembly that is not referenced. You must add a reference to assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'. Thanks for help!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Have you added the reference as explained in the error message?

      U 1 Reply Last reply
      0
      • L Lost User

        Have you added the reference as explained in the error message?

        U Offline
        U Offline
        User 9427106
        wrote on last edited by
        #3

        yes, I have update the mono.android.4.10 and the problem solved! thanks in advanced !

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups