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

浙公网安备 33010602011771号