我有一個錯誤,這是我的代碼dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'androidx.cardview:cardview:1.0.0'對于 xml<android.support.v7.widget.CardView android:id="@+id/card_view" android:layout_width="match_parent" android:layout_height="293dp" app:cardBackgroundColor="@color/card" app:cardCornerRadius="10dp" app:cardElevation="5dp" app:cardUseCompatPadding="true"> <TextView android:id="@+id/textView4" android:layout_width="432dp" android:layout_height="510dp" android:text="TextView" /> <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent" tools:ignore="WebViewLayout" /> </android.support.v7.widget.CardView>使用這行代碼,應(yīng)用程序停止,我僅嘗試使用依賴項(xiàng)行,并且我沒有放置 XML 代碼行,僅使用依賴項(xiàng)實(shí)現(xiàn)cardview行和 hid 并沒有停止,但是當(dāng)我放置該代碼行時對于 XML 文件,應(yīng)用程序停止。
我的 xml 代碼中有一個錯誤,導(dǎo)致所有應(yīng)用程序停止
慕尼黑5688855
2023-12-10 15:01:20