gpt4 book ai didi

android - 在包 'appComponentFactory' 中找不到属性 'android' 的资源标识符

转载 作者:IT老高 更新时间:2023-10-28 21:55:51 26 4
gpt4 key购买 nike

我使用 google material design 作为 https://material.io/develop/android/docs/getting-started/但是当同步项目时我有以下错误

在包“android”中找不到属性“appComponentFactory”的资源标识符Message{kind=ERROR, text=No resource identifier found for attribute 'appComponentFactory' in package 'android', sources=[\?\E:\Projects\xoxo-android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml:17],原始消息=,工具名称=Optional.of(AAPT)}

这是我的 build.gradle 文件

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"

defaultConfig {
applicationId "com.example.official2.xoxo"
minSdkVersion 17
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}


dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.0.1'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.android.support:design:26.0.1'
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta4'
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta3'
compile 'com.wang.avi:library:2.1.3'
compile 'com.mikhaellopez:circularimageview:3.0.2'
compile 'com.droidninja:filepicker:1.0.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.android.support:cardview-v7:26.0.1'
compile 'com.github.ganfra:material-spinner:1.1.1'
compile 'com.google.android.material:material:1.0.0-alpha1'
}

这是 manifest.xml 文件

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.official2.xoxo"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="17"
android:targetSdkVersion="26" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />

<application
android:name="droidninja.filepicker.FilePickerDelegate"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.official2.xoxo.activity.LoginActivity"
android:label="@string/app_name"
android:launchMode="singleTop"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.example.official2.xoxo.activity.RegisterActivity"
android:label="@string/app_name"
android:launchMode="singleTop"
android:windowSoftInputMode="adjustPan" />
<activity
android:name="com.example.official2.xoxo.MainActivity"
android:label="@string/app_name"
android:launchMode="singleTop" />
<activity
android:name="com.example.official2.xoxo.activity.RegisterInfo"
android:screenOrientation="portrait" />
<activity android:name="com.example.official2.xoxo.activity.Registration_shop" />
<activity
android:name="com.example.official2.xoxo.activity.Product_Dashboard"
android:label="@string/title_activity_product__dashboard"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar" />
<activity android:name="com.example.official2.xoxo.activity.AddService" />

<!--
ATTENTION: This was auto-generated to add Google Play services to your project for
App Indexing. See https://g.co/AppIndexing/AndroidStudio for more information.
-->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />

<activity android:name="com.example.official2.xoxo.activity.SellerProfile" />
<activity android:name="com.example.official2.xoxo.activity.Services" />
<activity
android:name="com.example.official2.xoxo.activity.AddProduct"
android:screenOrientation="portrait"
android:windowSoftInputMode="stateVisible|adjustResize" />
<activity
android:name="com.example.official2.xoxo.activity.ProductProfileActivity"
android:screenOrientation="portrait" />
<activity
android:name="com.example.official2.xoxo.activity.AddImagesActivity"
android:screenOrientation="portrait" />
<activity
android:name="droidninja.filepicker.FilePickerActivity"
android:theme="@style/Theme.AppCompat.Light.DarkActionBar" >
</activity>

<meta-data
android:name="android.support.VERSION"
android:value="26.0.1" />
</application>

</manifest>

如何解决这个错误?

最佳答案

试试这个代码:

cordova plugin add cordova-android-support-gradle-release --variable ANDROID_SUPPORT_VERSION=27.+

关于android - 在包 'appComponentFactory' 中找不到属性 'android' 的资源标识符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50266035/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com