我无法在Android Studio中运行我的第一个颤振应用程序
颤动医生-v
[√] Flutter (Channel beta, v0enter code here.9.4, on Microsoft Windows [Version 10.0.17134.345], locale en-US)enter code here
• Flutter version 0.9.4 at C:\development\flutter`enter code here`
• Framework revision f37c235 (5 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Meteor\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = C:\Users\Meteor\AppData\Local\Android
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 29.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)
• No issues found!
Android Studio(控制台)
Performing hot restart...
Syncing files to device Android SDK built for x86...
Error running Gradle:
Exit code 1 from: C:\Users\Meteor\AndroidStudioProjects\my_flutter_app\android\gradlew.bat app:properties:
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
Download /dl/android/maven2/com/android/tools/build/gradle/3.1.2/gradle-3.1.2.pom
Download /dl/android/maven2/com/android/tools/build/gradle-core/3.1.2/gradle-core-3.1.2.pom
Download /dl/android/maven2/com/android/tools/build/bundletool/0.1.0-alpha01/bundletool-0.1.0-alpha01.pom
Download /com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.pom
Download /com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\Meteor\AndroidStudioProjects\my_flutter_app\android\app\build.gradle' line: 25
What went wrong:
A problem occurred evaluating project ':app'.
Could not resolve all files for configuration 'classpath'.
Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.1.2).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/lint/lint-gradle-api/26.1.2/lint-gradle-api-26.1.2.jar
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 7m 57s
Finished with error: Please review your Gradle project setup in the android/ folder.
尝试打开Android Studio中的android dir作为Android Project,然后打开\app\build.gradle并单击sync按钮。
Download /dl/android/maven2/com/android/tools/build/gradle-core/3.1.2/gradle-core-3.1.2.pom
这表明您使用的是Gradle的旧版本。尝试升级到3.2。0
我运行颤振应用程序时遇到问题。ERORR:“未能应用插件[id'com.android.internal.version check'] 控制台:失败:生成失败,出现异常。 > 错误:评估项目“:app”时出现问题。 未能应用插件[id'com.android.internal.version check']支持的最低渐变版本为6.5。目前的版本是5.6.2。如果使用gradle包装,请尝试在C:
首先,抱歉英语不好。我从Flatter开始,我已经安装了所有必要的东西,但是当尝试运行测试应用程序(在模拟器或设备中)时,我会收到下面的错误消息。 正在启动lib\main。调试模式下XT1097上的dart。。。正在初始化gradle。。。正在解析依赖项…*运行Gradle时出错:从以下位置退出代码1:C:\Testes\first\u app\android\gradlew。bat应用程序:属
我正试图从Flatter网站上消化以下信息。 Flutter如何在Android上运行我的代码? 引擎的C和C代码是用Android的NDK编译的。Dart代码(SDK和您的)是提前(AOT)编译到本机、ARM和x86库中的。这些库包含在一个“runner”Android项目中,整个项目都内置在一个APK中。启动时,应用程序将加载颤振库。任何呈现、输入或事件处理等都被委托给编译的flatter和应
我如何以编程方式关闭一个Flutter应用程序?我尝试弹出唯一的屏幕,但结果是黑屏。
我想从实时数据库中获取数据,数据以地图的形式存在 虽然Product类只是一个普通类,其PRICE属性为Double,但其他所有属性都是String。执行此代码时,会产生以下错误。 I/flatter(4228):类型“\u InternalLinkedHashMap”不是类型“String”的子类型 我可以使用什么样的数据结构/方法/解决方法? 产品类别
我已经安装了所有必要的工具,但仍然显示错误。我已经安装了所有必需的SDK文件两次三次,但仍然显示错误。 这是错误