AS Android项目的layout文件无法自动补全android:id等基础属性字段

问题:

Android项目的layout文件无法自动补全android:id等基础属性字段

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="horizontal">

    <TextView
        id

</LinearLayout>

使用的AS的版本:

Bumblebee 2011 1 1 patch 3

问题原因:

Sdk manager下载了 Android API 33

同时,在 app.gradle 中使用了该API

android {
    compileSdk 33

    defaultConfig {
        ...
        targetSdk 33
        ...
    }
    ...
}

 解决方式:

执行以下变更 

complieSdk 32

targetSdk32

posted @ 2023-01-17 16:27  swalka`x  阅读(288)  评论(0编辑  收藏  举报