亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Android應用程序啟動后立即崩潰

Android應用程序啟動后立即崩潰

絕地無雙 2023-02-16 16:39:40
我應該在這里做一些改變嗎?我得到的錯誤與構建版本有關。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


查看完整回答
反對 回復 2023-02-16
?
鴻蒙傳說

TA貢獻1865條經驗 獲得超7個贊

據我所知,InstantRun 是實驗性功能。

請嘗試禁用它。

請參閱文檔中有關何時不起作用的描述: https ://developer.android.com/studio/run/index.html#instant-run

更新:

順便說一句,問題的原始描述有這樣的文字:“I/InstantRun:啟動即時運行服務器:主進程應用程序已終止?!?/p>

所以我的命題和假設就來了。

我不要求完全禁用 InstantRun。只是檢查一下。如果有幫助,則需要更改代碼以確認文檔中提到的 InstantRun 要求(或在此處填寫 InstantRun 的錯誤)。


查看完整回答
反對 回復 2023-02-16
  • 2 回答
  • 0 關注
  • 144 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號