1> JAVAC: warning: unknown enum constant Scope.LIBRARY_GROUP in xamarin.android after adding xamari.support.v4 and xamarin.support.v7.AppC

during splash training Screen I add the package xamarin.support.v4 and xamarin.android.v7.appcompat each thin fine, I just get warning 1> JAVAC: warning: unknown enum constant Scope.LIBRARY_GROUP and my code works well: mine splash activity code:

enter code here
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.Support.V7.App;
using System.Threading.Tasks;
using Android.Util;
namespace againCardview
[Activity(Label = "SplashActivity",MainLauncher =true,NoHistory                   =true,Theme = "@style/MyTheme.Splash")]
public class SplashActivity :AppCompatActivity
    string tag = "TAg" + typeof(SplashActivity).Name;
    public override void OnCreate(Bundle      savedInstanceState,PersistableBundle persist)
        Log.Debug(tag, "this is Oncreate method of splashActivity");
    protected override void OnResume()
        var setartActivity = new Task(()=> {
            Log.Debug(tag, "Now App is starting");
            Log.Debug(tag, "now performing importing work");
        setartActivity.ContinueWith(p => {
            Log.Debug(tag, "Starting App");
            StartActivity(new Intent(Application.Context,      typeof(MainActivity)));





source to share

2 answers

Now I solved this by going back to the previous version of Google Play Services in my app / build.gradle dependencies. This issue happened to me after updating to the latest libraries, but gets away with this:

dependencies {
    // there is a problem using 25.2.0: Warning:unknown enum constant Scope.LIBRARY_GROUP
    compile 'com.android.support:appcompat-v7:24.2.1'
    compile 'com.android.support:design:24.2.1'
    compile 'com.android.support:support-v4:24.2.1'
    compile 'com.android.support:cardview-v7:24.2.1'
    compile 'com.android.support:recyclerview-v7:24.2.1'
    compile 'com.android.support:support-vector-drawable:24.2.1'
    compile 'com.android.support:support-annotations:24.2.1'




to fix this download xamarin.Android.Support.V7.AppCompat 24.2.1.



All Articles