我已经安装了Android Studio 4.1 Canary,但Layout Inspector根本没有显示实时更新和进程。从 Android Studio 设置启用 Experimental 但没有发生任何事情。
这是我的build.gradle文件。所以一切看起来都不错,但没有显示实时更新。
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: "androidx.navigation.safeargs.kotlin"
android {
compileSdkVersion 29
defaultConfig {
applicationId "com.example.test"
minSdkVersion 21
targetSdkVersion 29
buildToolsVersion "29.0.3"
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}
configurations.all {
resolutionStrategy {
force 'androidx.appcompat:appcompat:1.1.0'
force 'com.google.android.exoplayer:exoplayer:2.10.4'
}
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
}