这是用户界面。下面是 main.dart 文件和错误消息\n
\n我在 Flutter 应用程序中使用文本字段,它在虚拟键盘顶部给出了渲染弯曲错误。请检查下面的代码。\n在底部我添加了错误消息。\n之前我尝试了所有其他方法来解决该问题,但我不同意
import \'package:flutter/material.dart\';\nimport \'./transaction.dart\';\nimport \'package:intl/intl.dart\';\n\nvoid main() {\n runApp(MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n @override\n Widget build(BuildContext context) {\n return MaterialApp(\n title: \'Expenses Tracker\',\n home: MyHomePage(),\n );\n }\n}\n\nclass MyHomePage extends StatelessWidget {\n final List<Transaction> transactions = [\n Transaction(\n id: \'t1\',\n title: \'New Shoes\',\n amount: 87.25,\n date: DateTime.now(),\n ),\n Transaction(\n id: \'t2\',\n title: \'Weekly Groceries\',\n amount: 83.25,\n date: DateTime.now(),\n ),\n ];\n\n @override\n Widget build(BuildContext context) {\n return Scaffold(\n appBar: AppBar(\n title: Text(\'Expenses Tracker\'),\n ),\n body: Column(\n children: …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 build.gradle 文件中添加 Firebase。但是,它似乎不起作用。这是我的 build.gradle 文件,下面是错误。我什至查看了一些以前的堆栈溢出问题,但它们不起作用,所以请帮助我。!
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
googleServices.disableVersionCheck = true
android {
compileSdkVersion 29
buildToolsVersion "30.0.1"
defaultConfig {
applicationId "com.teachbrowniesindia.textrecognizer"
minSdkVersion 19
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 fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-ml-vision:24.1.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
implementation 'com.google.android.gms:play-services-ads:19.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
Run Code Online (Sandbox Code Playgroud)
错误
Duplicate class com.google.android.gms.internal.vision.zzf found in modules jetified-play-services-vision-20.0.0-runtime.jar (com.google.android.gms:play-services-vision:20.0.0) and …Run Code Online (Sandbox Code Playgroud)