错误:com.android.builder.symbols.ResourceValuesXmlParseException:未知的android属性' MenuView'

时间:2018-03-19 09:28:15

标签: java android eclipse android-studio error-handling

我对这一切都很陌生,而且我在代码方面没有经验。 (但我擅长调整已经存在的东西)。

我购买了一个基于Eclipse构建的应用程序,我需要将其导入Android Studio。我不知道我是否完全正确导入了所有内容,但我正在尝试运行我的应用程序以查看是否所有内容都已正确导入,并且在修复了许多错误后,我对如何修复此错误感到困惑和困惑:< / p>

  

错误:任务执行失败&#39;:android-support-v7-appcompat:processDebugResources&#39;。   未知的Android属性&#39; MenuView&#39;

当我使用信息运行时,我收到此消息:

  

错误:FAILURE:构建因异常而失败。

     
      
  • 出了什么问题:   任务执行失败&#39;:android-support-v7-appcompat:processDebugResources&#39;。   未知的Android属性&#39; MenuView&#39;

  •   
  • 尝试:   使用--stacktrace选项运行以获取堆栈跟踪。使用--debug选项运行以获得更多日志输出。

  •   
  • https://help.gradle.org

  • 获取更多帮助   
     

在1s内建立失败

stacktrace给了我这个:

  

错误:com.android.builder.symbols.ResourceValuesXmlParseException:未知的android属性&#39; MenuView&#39;

这是我的清单:

&#13;
&#13;
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.designetxcs.superramboost"
    android:versionCode="2"
    android:versionName="2.0" >

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="19" />

    <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
    <uses-permission android:name="android.permission.CLEAR_APP_CACHE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/application_name"
        android:logo="@drawable/ic_launcher"
        android:theme="@style/Theme.Easyrambooster"
        tools:replace="android:theme">
        <activity
            android:name="com.raihanbd.easyrambooster.MainActivity"
            android:label="@string/application_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <service android:name="com.raihanbd.easyrambooster.QuickBoosterService" >
        </service>

        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />

        <activity
            android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
    </application>
&#13;
&#13;
&#13;

这是我的傻瓜:

&#13;
&#13;
apply plugin: 'android'

buildscript {
    repositories {
        mavenCentral()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}

allprojects {
    repositories {
        mavenCentral()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile project(':android-support-v7-appcompat')
    compile project(':google-play-services_lib')
    compile project(':ProgressWheel')
    compile project(':ProgressWheel')
}

android {
    compileSdkVersion 19


    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            assets.srcDirs = ['assets']
        }

        // Move the tests to tests/java, tests/res, etc...
        instrumentTest.setRoot('tests')

        // Move the build types to build-types/<type>
        // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
        // This moves them out of them default location under src/<type>/... which would
        // conflict with src/ being used by the main source set.
        // Adding new build types or product flavors should be accompanied
        // by a similar customization.
        debug.setRoot('build-types/debug')
        release.setRoot('build-types/release')
    }
}
&#13;
&#13;
&#13;

我感谢所有的帮助。

更新:我发现了这个:

&#13;
&#13;
static final int[] MenuView = { 0x010100ae, 0x0101012c, 0x0101012d, 0x0101012e, 0x0101012f, 0x01010130, 0x01010131, 0x01010435 };
		public static final int MenuView_android_headerBackground = 4;
		public static final int MenuView_android_horizontalDivider = 2;
		public static final int MenuView_android_itemBackground = 5;
		public static final int MenuView_android_itemIconDisabledAlpha = 6;
		public static final int MenuView_android_itemTextAppearance = 1;
		public static final int MenuView_android_preserveIconSpacing = 7;
		public static final int MenuView_android_verticalDivider = 3;
		public static final int MenuView_android_windowAnimationStyle = 0;
&#13;
&#13;
&#13;

也许这里出现了一些错误?

0 个答案:

没有答案