我應該在這里做一些改變嗎?我得到的錯誤與構建版本有關。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:啟動即時運行服務器:主進程應用程序已終止?!?/p>
所以我的命題和假設就來了。
我不要求完全禁用 InstantRun。只是檢查一下。如果有幫助,則需要更改代碼以確認文檔中提到的 InstantRun 要求(或在此處填寫 InstantRun 的錯誤)。
添加回答
舉報
0/150
提交
取消