大佬教程收集整理的这篇文章主要介绍了Flutter 项目:错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
此处的所有更新信息:Flutter Project : Errors (mostly with Android Manifest and Main Activity files)
<manifest xmlns:androID="http://scheR_723_11845@as.androID.com/apk/res/androID"
package="polacoenchile.world_time_app2">
<application
androID:label="world_time_app2"
androID:icon="@mipmap/ic_launcher">
<activity
androID:name=".MainActivity"
androID:launchMode="singletop"
androID:theme="@style/Launchtheme"
androID:configChanges="orIEntation|keyboardHIDden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|FontScale|screenLayout|density|uiMode"
androID:harDWareAccelerated="true"
androID:windowsofTinputMode="adjustResize">
<!-- SpecifIEs an AndroID theme to apply to this Activity as soon as
the AndroID process has started. This theme is visible to the user
while the Flutter UI initializes. After that,this theme conTinues
to determine the Window BACkground behind the Flutter UI. -->
<Meta-data
androID:name="io.Flutter.embedding.androID.normaltheme"
androID:resource="@style/normaltheme"
/>
<!-- displays an AndroID VIEw that conTinues showing the launch screen
Drawable until Flutter paints its first frame,then this splash
screen fades out. A splash screen is useful to avoID any visual
gap between the end of AndroID's launch screen and the painTing of
Flutter's first frame. -->
<Meta-data
androID:name="io.Flutter.embedding.androID.SplashScreenDrawable"
androID:resource="@drawable/launch_BACkground"
/>
<intent-filter>
<action androID:name="androID.intent.action.MAIN"/>
<category androID:name="androID.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<Meta-data
androID:name="FlutterEmbedding"
androID:value="2" />
</application>
</manifest>
这就是我的文件的样子,我从不碰任何东西,所以我不知道出了什么问题。在图片上,我显示了所有错误。我进行分析,因为在模拟器上一切正常。我制作了 .apk 文件以安装在我的手机上,我制作了它但应用程序没有显示任何内容,只是灰色背景。 有谁知道怎么回事?
@H_681_2@my app project errorsandroid project
android project errors
@H_681_2@mainactivity file主活动文件
package polacoenchile.world_time_app2
import io.Flutter.embedding.androID.FlutterActivity
class MainActivity: FlutterActivity() {
}
Flutter 医生在将 Flutter 降级到稳定版后发现了一些问题。但我确定我在我的 androID studio 中添加了插件:Flutter,Dart
C:\Users\wdowk>Flutter doctor -v
[√] Flutter (ChAnnel s@R_403_5991@,1.22.6,on Microsoft windows [Version 10.0.18363.1379],locale pl-PL)
• Flutter version 1.22.6 at C:\src\Flutter
• Framework revision 9b2d32b605 (5 weeks ago),2021-01-22 14:36:39 -0800
• ENGIne revision 2f0af37152
• Dart version 2.10.5
[√] AndroID toolchain - develop for AndroID devices (AndroID SDK version 30.0.3)
• AndroID SDK at C:\Users\wdowk\ApPDAta\Local\AndroID\Sdk
• Platform androID-30,build-tools 30.0.3
• Java binary at: F:\Program files\AndroID studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All AndroID licenses accepted.
[!] AndroID studio (version 4.1.0)
• AndroID studio at F:\Program files\AndroID studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[!] Connected device
! No devices available
! Doctor found issues in 2 categorIEs.
您评论了不应该评论的部分,如果您修复此行,一切都会正常运行
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java
<meta-data
android:name="flutterEmbedding"
android:value="2" />
以上是大佬教程为你收集整理的Flutter 项目:错误全部内容,希望文章能够帮你解决Flutter 项目:错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。