Flutter_YYeTs icon indicating copy to clipboard operation
Flutter_YYeTs copied to clipboard

运行不起来,什么肥事?

Open yslings opened this issue 5 years ago • 2 comments

H:\app\Flutter_YYeTs>flutter run Launching lib/main.dart on MI 6 in debug mode... Initializing gradle... 1.4s Resolving dependencies...

  • Error running Gradle: ProcessException: Process "H:\app\Flutter_YYeTs\android\gradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

  • Where: Build file 'H:\app\Flutter_YYeTs\android\app\build.gradle' line: 16

  • What went wrong: A problem occurred evaluating project ':app'.

versionCode not found. Define flutter.versionCode in the local.properties file.

  • 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 1s Command: H:\app\Flutter_YYeTs\android\gradlew.bat app:properties

Please review your Gradle project setup in the android/ folder.

H:\app\Flutter_YYeTs>

yslings avatar Mar 31 '19 17:03 yslings

我的方法就是:找一个可运行的项目:把这个不能运行的项目的两个文件的内容给全部替换掉: 第一个文件:android--app-src--build.grandle 第二个文件:android--local.properties 目前具体原因我也不太懂,刚学,但是应该都是一些初始配置项的问题??

pengwenquan avatar Apr 09 '19 07:04 pengwenquan

我的方法就是:找一个可运行的项目:把这个不能运行的项目的两个文件的内容给全部替换掉: 第一个文件:android--app-src--build.grandle 第二个文件:android--local.properties 目前具体原因我也不太懂,刚学,但是应该都是一些初始配置项的问题??

你运行起来了吗?

yslings avatar Apr 16 '19 03:04 yslings