1> JAVAC:警告:添加 xamarin.support.v4 和 xamarin.support.v7.AppC 后,xamarin.android 中的未知枚举常量 Scope.LIBRARY_GROUP [英] 1>JAVAC : warning : unknown enum constant Scope.LIBRARY_GROUP in xamarin.android after adding xamari.support.v4 and xamarin.support.v7.AppC

查看:16
本文介绍了1> JAVAC:警告:添加 xamarin.support.v4 和 xamarin.support.v7.AppC 后,xamarin.android 中的未知枚举常量 Scope.LIBRARY_GROUP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在练习启动画面时,我添加了 xamarin.support.v4 包和 xamarin.android.v7.appcompat,每个瘦都很好,我只是收到警告 1>JAVAC:警告:未知枚举常量 Scope.LIBRARY_GROUP我的代码运行良好:我的飞溅活动代码是:

while practicing splash Screen I add xamarin.support.v4 package and xamarin.android.v7.appcompat every thin is fine I am just getting warning 1>JAVAC : warning : unknown enum constant Scope.LIBRARY_GROUP and my code is working well: my code of splash activity is:

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)
    {
        base.OnCreate(savedInstanceState,persist);
        Log.Debug(tag, "this is Oncreate method of splashActivity");
    }
    protected override void OnResume()
    {
        base.OnResume();
        var setartActivity = new Task(()=> {
            Log.Debug(tag, "Now App is starting");
            Task.Delay(50000);
            Log.Debug(tag, "now performing importing work");
        });
        setartActivity.ContinueWith(p => {
            Log.Debug(tag, "Starting App");
            StartActivity(new Intent(Application.Context,      typeof(MainActivity)));
        },TaskScheduler.FromCurrentSynchronizationContext());

    }
}

}

推荐答案

现在我通过在我的 app/build.gradle 依赖项中回滚到之前版本的 Google Play 服务来解决这个问题.更新到最新的库后,这个问题发生在我身上,但随着这个问题消失了:

For now I solved this by rolling back to the previous version of Google Play Services in my app/build.gradle dependencies. This problem happened to me after updating to the latest libraries, but goes 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'
}

这篇关于1> JAVAC:警告:添加 xamarin.support.v4 和 xamarin.support.v7.AppC 后,xamarin.android 中的未知枚举常量 Scope.LIBRARY_GROUP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆