gpt4 book ai didi

java - 更新到 Android 3.0.0 后,我的 Android list 充满了错误

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:24:11 24 4
gpt4 key购买 nike

<分区>

更新到 Android 3.0.0 并将 gradle 更新到 4.1 后,我卡得很厉害。我的应用程序未构建, list 中包含很多错误。我尝试在 Build 下清理项目,在 Files 下使缓存无效/重新启动,但没有成功。

我收到的错误如下:

Error:(52) error: unknown element found.
Error:(52) unknown element found.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processDebugResources'.
Failed to execute aapt

所有错误都在 debug\AndroidManifest 中。当我删除或评论标记的 Activity 时,它们会重新添加到 gradle 构建中,

我也收到了“URI not registered error too with android="http://schemas.android.com/apk/res/android"

list :

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="sample.app"
android:installLocation="auto"
android:versionCode="48"
android:versionName="4.8" >

<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="25" />
//Hardware Constraints for Application
<uses-feature android:name="android.hardware.location.gps" />

<!-- <uses-feature android:name="android.hardware.location.network" /> -->

//Required App Permissions
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.READ_SMS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.READ_CALL_LOG" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
<uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY" />
<uses-permission android:name="android.permission.SEND_SMS" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT" />

<uses-permission-sdk-23 android:name="android.permission.MODIFY_PHONE_STATE" />

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

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

<activity android:name="com.box.androidsdk.content.auth.OAuthActivity" />

<uses-feature
android:name="android.hardware.sensor.accelerometer"
android:required="true" /> <!-- Permissions required for GCM -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />

<permission
android:name="sample.app.permission.C2D_MESSAGE"
android:protectionLevel="signature" />

<uses-permission android:name="sample.app.permission.C2D_MESSAGE" />
<!--
<uses-feature
android:name="android.hardware.camera2.full"
android:required="true" />
-->
<!--
<uses-feature
android:name="android.hardware.sensor.accelerometer"
android:required="true" />
-->
<application
android:name="sample.app.dailymotion.volleyapp.AppController"
android:allowBackup="true"
android:debuggable="true"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="@style/AppTheme" >

<!--
<meta-data
android:name="com.google.android.gms.vision.DEPENDENCIES"
android:value="barcode"/>
-->
<activity android:name="sample.app.SplashScreen" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="sample.app.ClrInfo"
android:exported="false"
android:theme="@style/MyDialogTheme" />

</application>
</manifest>

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