我在每个支持设计小部件上都出错。像recyclerview,协调器布局等。每次,我添加一个正在显示的支持设计小部件。
java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener
Run Code Online (Sandbox Code Playgroud)
在布局问题部分。我正在使用api 28.0.0-rc01,gradle 4.4 android 3.1.4。这是我的build.gradle(app)文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.android.test5test"
minSdkVersion 23
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildToolsVersion '28.0.2'
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:28.0.0-rc01'
implementation 'com.android.support:cardview-v7:28.0.0-rc01'
implementation 'com.android.support:recyclerview-v7:28.0.0-rc01'
}
Run Code Online (Sandbox Code Playgroud)
这是我的布局文件
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent" …Run Code Online (Sandbox Code Playgroud) android classnotfoundexception android-support-library android-support-design android-9.0-pie
Flutter android 发布版本卡在启动屏幕上。
我已经尝试过清理项目flutter clean。但它仍然卡在启动画面上。我WidgetsFlutterBinding.ensureInitialized();在执行runApp(). 仍然卡在闪屏上。也没有找到可以解决的错误日志。
调试版本或我使用flutter run --release. 该应用程序在flutter run --release.
我正在使用颤振 1.22.0 和 VSCode 1.49.3。测试和发布Android。
我坚持这最后 3 天。如果有人可以帮助我,那将非常有帮助。