我应该在这里做一些改变吗?我得到的错误与构建版本有关。apply plugin: 'com.android.application'android { compileSdkVersion 29 buildToolsVersion "29.0.0" defaultConfig { applicationId "com.virtual.ai" minSdkVersion 15 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } }}dependencies { implementation 'com.google.firebase:firebase-core:16.0.9' implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.android.material:material:1.0.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.google.firebase:firebase-core:10.2.0' implementation 'com.google.firebase:firebase-database:10.2.0' implementation 'info.hoang8f:fbutton:1.0.5' implementation 'com.rengwuxian.materialedittext:library:2.1.4' implementation 'com.squareup.picasso:picasso:2.5.2' implementation 'com.firebaseui:firebase-ui-database:1.2.0' implementation 'com.android.support:design:26.+' implementation "com.google.android.material:material:1.0.0" implementation "androidx.recyclerview:recyclerview:1.0.0" implementation "androidx.cardview:cardview:1.0.0"}apply plugin: 'com.google.gms.google-services'
2 回答

扬帆大鱼
TA贡献1799条经验 获得超9个赞
这似乎是与 info.hoang8f.widget.FButton 相关的问题。尝试将 android gradle 插件版本更改为 2.3.3。看看这个问题 - Error inflating class info.hoang8f.widget.FButton

鸿蒙传说
TA贡献1865条经验 获得超7个赞
据我所知,InstantRun 是实验性功能。
请尝试禁用它。
请参阅文档中有关何时不起作用的描述: https ://developer.android.com/studio/run/index.html#instant-run
更新:
顺便说一句,问题的原始描述有这样的文字:“I/InstantRun:启动即时运行服务器:主进程应用程序已终止。”
所以我的命题和假设就来了。
我不要求完全禁用 InstantRun。只是检查一下。如果有帮助,则需要更改代码以确认文档中提到的 InstantRun 要求(或在此处填写 InstantRun 的错误)。
添加回答
举报
0/150
提交
取消