HELP - new Fragment() Error

NevaranNevaran BGMember ✭✭
edited December 2017 in General

Im trying to add tabs to my app, and I keep getting these weird errors:
Java.Lang.ClassNotFoundException: Didn't find class "md55d94d03cbfbaadabfa69ab1c87ffb1ad.GeneralFragment" on path: DexPathList[[zip file "/data/app/com.app.myapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.app.myapp-1/lib/arm64, /system/fake-libs64, /data/app/com.app.myapp-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]

In the example projects, it works just fine.

Heres the code:
_fragments = new Fragment[]
{
new GeneralFragment(),
new SettingsFragment()
};

Anyone can help me?

Answers

  • NevaranNevaran BGMember ✭✭
    edited December 2017

    This is the fragments that are being created:
    public class GeneralFragment : Fragment
    {
    public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
    {
    View view = inflater.Inflate(Resource.Layout.General_Fragment, null);
    //view.FindViewById(Resource.Id.textView1).SetText(Resource.String.speakers_tab_label);
    //view.FindViewById(Resource.Id.imageView1).SetImageResource(Resource.Drawable.ic_action_speakers);
    return view;
    }
    }

        public class SettingsFragment : Fragment
        {
            public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
            {
                View view = inflater.Inflate(Resource.Layout.Settings_Fragment, null);
                return view;
            }
        }
    
Sign In or Register to comment.