Tha*_*Luu 3 location dart flutter
我是颤振的新手,正在尝试构建一个跟踪位置应用程序。我的颤动版本是Flutter 1.18.0-7.0.pre.21 \xe2\x80\xa2 channel master \xe2\x80\xa2 https://github.com/flutter/flutter.git并且flutter doctor是 No issues found!。我在我的项目中使用 API Google 地图并有 google_map_package。。当我调试这个应用程序时显示问题是Execution failed for task ':app:processDebugResources'.
设置.gradle
\ninclude ':app'\n\ndef localPropertiesFile = new File(rootProject.projectDir, "local.properties")\ndef properties = new Properties()\n\nassert localPropertiesFile.exists()\nlocalPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }\n\ndef flutterSdkPath = properties.getProperty("flutter.sdk")\nassert flutterSdkPath != null, "flutter.sdk not set in local.properties"\napply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"\nRun Code Online (Sandbox Code Playgroud)\n
您看到此错误是因为 Android Studio 不知道 Flutter 安装在您的计算机中的哪个位置。您需要在local.properties文件中明确指定这一点,如下所示:
## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Fri Aug 14 13:14:39 PDT 2020
sdk.dir=C\:\\Users\\username\\AppData\\Local\\Android\\Sdk
flutter.versionName=1.2.0
flutter.sdk=C\:\\Users\\username\\flutter
Run Code Online (Sandbox Code Playgroud)