Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3 crashing with Permission denied #42

Closed
JohnAherne opened this issue May 29, 2018 · 5 comments
Closed

1.3 crashing with Permission denied #42

JohnAherne opened this issue May 29, 2018 · 5 comments

Comments

@JohnAherne
Copy link

JohnAherne commented May 29, 2018

With the program gps_test2 set to use location 1.2, I find that the version with location 1.2 works and onchanged fires with updates. The pubspec.yaml uses 1.2.0. See the pubspec.yaml further down.

The same program gps_test2. I just change pubspec.yaml to "^1.2.0 and it crashes on permission denied. See pubspec.yaml further down.

See the run logs for each run further down

This is on Windows 10

## FLUTTER DOCTOR

C:\flutter_tests>flutter doctor -v
[v] Flutter (Channel beta, v0.4.4, on Microsoft Windows [Version 10.0.17134.48], locale en-GB)
• Flutter version 0.4.4 at c:\flutter_dev\flutter
• Framework revision f9bb4289e9 (2 weeks ago), 2018-05-11 21:44:54 -0700
• Engine revision 06afdfe54e
• Dart version 2.0.0-dev.54.0.flutter-46ab040e58

[v] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\john2\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.

[v] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[v] VS Code, 64-bit edition (version 1.23.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Dart Code extension version 2.12.1

[v] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.1.1 (API 25) (emulator)

• No issues found!


PUBSPEC.YAML FLUTTER LOCATION 1.2

``
name: gps_test2
description: A new Flutter project.

dependencies:
flutter:
sdk: flutter
location: "1.2.0"

The following adds the Cupertino Icons font to your application.
Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2

dev_dependencies:
flutter_test:
sdk: flutter

For information on the generic Dart part of this file, see the
following page: https://www.dartlang.org/tools/pub/pubspec

The following section is specific to Flutter.
flutter:

The following line ensures that the Material Icons font is
included with your application, so that you can use the icons in
the material Icons class.
uses-material-design: true

To add assets to your application, add an assets section, like this:
assets:
images/a_dot_burr.jpeg
images/a_dot_ham.jpeg

An image asset can refer to one or more resolution-specific "variants", see
https://flutter.io/assets-and-images/#resolution-aware.

For details regarding adding assets from package dependencies, see
https://flutter.io/assets-and-images/#from-packages

To add custom fonts to your application, add a fonts section here,
in this "flutter" section. Each entry in this list should have a
"family" key with the font family name, and a "fonts" key with a
list giving the asset and other descriptors for the font. For
example:
fonts:
family: Schyler
fonts:
asset: fonts/Schyler-Regular.ttf
asset: fonts/Schyler-Italic.ttf
style: italic
family: Trajan Pro
fonts:
asset: fonts/TrajanPro.ttf
asset: fonts/TrajanPro_Bold.ttf
weight: 700

For details regarding fonts from package dependencies,
see https://flutter.io/custom-fonts/#from-packages

PUBSPEC.YAML FLUTTER LOCATION 1.3

``

name: gps_test2
description: A new Flutter project.

dependencies:
flutter:
sdk: flutter
location: "^1.2.0"

The following adds the Cupertino Icons font to your application.
Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2

dev_dependencies:
flutter_test:
sdk: flutter

For information on the generic Dart part of this file, see the
following page: https://www.dartlang.org/tools/pub/pubspec

The following section is specific to Flutter.
flutter:

The following line ensures that the Material Icons font is
included with your application, so that you can use the icons in
the material Icons class.
uses-material-design: true

To add assets to your application, add an assets section, like this:
assets:
images/a_dot_burr.jpeg
images/a_dot_ham.jpeg

An image asset can refer to one or more resolution-specific "variants", see
https://flutter.io/assets-and-images/#resolution-aware.

For details regarding adding assets from package dependencies, see
https://flutter.io/assets-and-images/#from-packages

To add custom fonts to your application, add a fonts section here,
in this "flutter" section. Each entry in this list should have a
"family" key with the font family name, and a "fonts" key with a
list giving the asset and other descriptors for the font. For
example:
fonts:
family: Schyler
fonts:
asset: fonts/Schyler-Regular.ttf
asset: fonts/Schyler-Italic.ttf
style: italic
family: Trajan Pro
fonts:
asset: fonts/TrajanPro.ttf
asset: fonts/TrajanPro_Bold.ttf
weight: 700

For details regarding fonts from package dependencies,
see https://flutter.io/custom-fonts/#from-packages
``

FLUTTER LOCATION 1.3 run LOG

C:\flutter_tests\gps_test2>flutter run -v
[ +36 ms] [c:\flutter_dev\flutter] git rev-parse --abbrev-ref --symbolic @{u}
[ +55 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] [c:\flutter_dev\flutter] git rev-parse --abbrev-ref HEAD
[ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] [c:\flutter_dev\flutter] git ls-remote --get-url origin
[ +27 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] [c:\flutter_dev\flutter] git log -n 1 --pretty=format:%H
[ +28 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] f9bb4289e9fd861d70ae78bcc3a042ef1b35cc9d
[ ] [c:\flutter_dev\flutter] git log -n 1 --pretty=format:%ar
[ +32 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 2 weeks ago
[ ] [c:\flutter_dev\flutter] git describe --match v*.. --first-parent --long --tags
[ +48 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags
[ ] v0.4.4-0-gf9bb4289e
[ +234 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ +15 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_google_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:12
[ +104 ms] Found plugin location at C:\Users\john2\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\location-1.3.0
[ +100 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell getprop
[ +44 ms] ro.hardware = ranchu
[ +21 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +567 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[ +7 ms] Initializing gradle...
[ ] Using gradle from C:\flutter_tests\gps_test2\android\gradlew.bat.
[ +127 ms] C:\flutter_tests\gps_test2\android\gradlew.bat -v
[ +598 ms]
------------------------------------------------------------
Gradle 4.1
------------------------------------------------------------

               Build time:   2017-08-07 14:38:48 UTC
               Revision:     941559e020f6c357ebb08d5c67acdb858a3defc2

               Groovy:       2.4.11
               Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
               JVM:          1.8.0_152-release (JetBrains s.r.o 25.152-b02)
               OS:           Windows 10 10.0 amd64

[ +3 ms] Resolving dependencies...
[ ] [android] C:\flutter_tests\gps_test2\android\gradlew.bat app:properties
[+2948 ms] :app:properties

               ------------------------------------------------------------
               Project :app
               ------------------------------------------------------------

               allprojects: [project ':app']
               android: com.android.build.gradle.AppExtension_Decorated@341a5792
               androidDependencies: task ':app:androidDependencies'
               ant: org.gradle.api.internal.project.DefaultAntBuilder@299044b8
               antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@630aabe8
               archivesBaseName: app
               artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@53e0597a
               asDynamicObject: DynamicObject for project ':app'
               assemble: task ':app:assemble'
               assembleAndroidTest: task ':app:assembleAndroidTest'
               assembleDebug: task ':app:assembleDebug'
               assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
               assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
               assembleProfile: task ':app:assembleProfile'
               assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
               assembleRelease: task ':app:assembleRelease'
               assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
               baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@35203253
               buildDependents: task ':app:buildDependents'
               buildDir: C:\flutter_tests\gps_test2\build\app
               buildFile: C:\flutter_tests\gps_test2\android\app\build.gradle
               buildNeeded: task ':app:buildNeeded'
               buildOutputs: BaseVariantOutput container
               buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@1e3e05cb
               buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@28dda80f
               bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
               bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest'
               bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest'
               bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
               bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest'
               bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
               bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest'
               check: task ':app:check'
               checkDebugManifest: task ':app:checkDebugManifest'
               checkProfileManifest: task ':app:checkProfileManifest'
               checkReleaseManifest: task ':app:checkReleaseManifest'
               childProjects: {}
               class: class org.gradle.api.internal.project.DefaultProject_Decorated
               classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@79a70fe7
               cleanBuildCache: task ':app:cleanBuildCache'
               compileDebugAidl: task ':app:compileDebugAidl'
               compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
               compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
               compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
               compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
               compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
               compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
               compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
               compileDebugNdk: task ':app:compileDebugNdk'
               compileDebugRenderscript: task ':app:compileDebugRenderscript'
               compileDebugShaders: task ':app:compileDebugShaders'
               compileDebugSources: task ':app:compileDebugSources'
               compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
               compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
               compileLint: task ':app:compileLint'
               compileProfileAidl: task ':app:compileProfileAidl'
               compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
               compileProfileNdk: task ':app:compileProfileNdk'
               compileProfileRenderscript: task ':app:compileProfileRenderscript'
               compileProfileShaders: task ':app:compileProfileShaders'
               compileProfileSources: task ':app:compileProfileSources'
               compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
               compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
               compileReleaseAidl: task ':app:compileReleaseAidl'
               compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
               compileReleaseNdk: task ':app:compileReleaseNdk'
               compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
               compileReleaseShaders: task ':app:compileReleaseShaders'
               compileReleaseSources: task ':app:compileReleaseSources'
               compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
               compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
               components: SoftwareComponentInternal set
               configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@4d21182a
               configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@235f5c18
               configurations: configuration container
               connectedAndroidTest: task ':app:connectedAndroidTest'
               connectedCheck: task ':app:connectedCheck'
               connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
               consumeConfigAttr: task ':app:consumeConfigAttr'
               convention: org.gradle.api.internal.plugins.DefaultConvention@660715ac
               copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
               copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
               copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
               createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
               createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
               createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
               defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@279ee6bc
               defaultTasks: []
               deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@623b5a2d
               dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@3b5d65ee
               depth: 1
               description: null
               deviceAndroidTest: task ':app:deviceAndroidTest'
               deviceCheck: task ':app:deviceCheck'
               displayName: project ':app'
               distsDir: C:\flutter_tests\gps_test2\build\app\distributions
               distsDirName: distributions
               docsDir: C:\flutter_tests\gps_test2\build\app\docs
               docsDirName: docs
               ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@6529bd5c
               extensions: org.gradle.api.internal.plugins.DefaultConvention@660715ac
               extractProguardFiles: task ':app:extractProguardFiles'
               fileOperations: org.gradle.api.internal.file.DefaultFileOperations@35d20c43
               fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@d00c2e6
               flutter: FlutterExtension_Decorated@5da2b4bd
               flutterBuildDebug: task ':app:flutterBuildDebug'
               flutterBuildProfile: task ':app:flutterBuildProfile'
               flutterBuildRelease: task ':app:flutterBuildRelease'
               flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
               generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
               generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
               generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
               generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
               generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
               generateDebugAssets: task ':app:generateDebugAssets'
               generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
               generateDebugResValues: task ':app:generateDebugResValues'
               generateDebugResources: task ':app:generateDebugResources'
               generateDebugSources: task ':app:generateDebugSources'
               generateProfileAssets: task ':app:generateProfileAssets'
               generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
               generateProfileResValues: task ':app:generateProfileResValues'
               generateProfileResources: task ':app:generateProfileResources'
               generateProfileSources: task ':app:generateProfileSources'
               generateReleaseAssets: task ':app:generateReleaseAssets'
               generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
               generateReleaseResValues: task ':app:generateReleaseResValues'
               generateReleaseResources: task ':app:generateReleaseResources'
               generateReleaseSources: task ':app:generateReleaseSources'
               gradle: build 'android'
               group: android
               identityPath: :app
               inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@75c92108
               installDebug: task ':app:installDebug'
               installDebugAndroidTest: task ':app:installDebugAndroidTest'
               installProfile: task ':app:installProfile'
               installRelease: task ':app:installRelease'
               javaPreCompileDebug: task ':app:javaPreCompileDebug'
               javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
               javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
               javaPreCompileProfile: task ':app:javaPreCompileProfile'
               javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
               javaPreCompileRelease: task ':app:javaPreCompileRelease'
               javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
               layout: org.gradle.api.internal.file.DefaultProjectLayout@505c9be6
               libsDir: C:\flutter_tests\gps_test2\build\app\libs
               libsDirName: libs
               lint: task ':app:lint'
               lintDebug: task ':app:lintDebug'
               lintProfile: task ':app:lintProfile'
               lintRelease: task ':app:lintRelease'
               lintVitalRelease: task ':app:lintVitalRelease'
               logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@55875af3
               logging: org.gradle.internal.logging.services.DefaultLoggingManager@5bc064f9
               mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
               mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
               mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
               mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
               mergeDebugAssets: task ':app:mergeDebugAssets'
               mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
               mergeDebugResources: task ':app:mergeDebugResources'
               mergeDebugShaders: task ':app:mergeDebugShaders'
               mergeProfileAssets: task ':app:mergeProfileAssets'
               mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
               mergeProfileResources: task ':app:mergeProfileResources'
               mergeProfileShaders: task ':app:mergeProfileShaders'
               mergeReleaseAssets: task ':app:mergeReleaseAssets'
               mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
               mergeReleaseResources: task ':app:mergeReleaseResources'
               mergeReleaseShaders: task ':app:mergeReleaseShaders'
               mockableAndroidJar: task ':app:mockableAndroidJar'
               modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@138f3460
               modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@3632ccae
               module: org.gradle.api.internal.artifacts.ProjectBackedModule@1790e59b
               name: app
               normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@2ff29678
               objects: org.gradle.api.internal.model.DefaultObjectFactory@7ee94bc2
               org.gradle.jvmargs: -Xmx1536M
               packageDebug: task ':app:packageDebug'
               packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
               packageProfile: task ':app:packageProfile'
               packageRelease: task ':app:packageRelease'
               parent: root project 'android'
               parentIdentifier: root project 'android'
               path: :app
               platformAttrExtractor: task ':app:platformAttrExtractor'
               pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@1b45abcb
               plugins: [org.gradle.api.plugins.HelpTasksPlugin@1123764, com.android.build.gradle.api.AndroidBasePlugin@28270fe1, org.gradle.language.base.plugins.LifecycleBasePlugin@252d383f, org.gradle.api.plugins.BasePlugin@7b622bf6, org.gradle.api.plugins.ReportingBasePlugin@3949e166, org.gradle.platform.base.plugins.ComponentBasePlugin@448a2760, org.gradle.language.base.plugins.LanguageBasePlugin@323eac46, org.gradle.platform.base.plugins.BinaryBasePlugin@2fc0a5af, org.gradle.api.plugins.JavaBasePlugin@64aec3fb, com.android.build.gradle.internal.coverage.JacocoPlugin@48f75330, com.android.build.gradle.AppPlugin@48ea1093, FlutterPlugin@278a17fa]
               preBuild: task ':app:preBuild'
               preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
               preDebugBuild: task ':app:preDebugBuild'
               preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
               preProfileBuild: task ':app:preProfileBuild'
               preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
               preReleaseBuild: task ':app:preReleaseBuild'
               preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
               prepareLintJar: task ':app:prepareLintJar'
               processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
               processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
               processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
               processDebugJavaRes: task ':app:processDebugJavaRes'
               processDebugManifest: task ':app:processDebugManifest'
               processDebugResources: task ':app:processDebugResources'
               processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
               processOperations: org.gradle.api.internal.file.DefaultFileOperations@35d20c43
               processProfileJavaRes: task ':app:processProfileJavaRes'
               processProfileManifest: task ':app:processProfileManifest'
               processProfileResources: task ':app:processProfileResources'
               processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
               processReleaseJavaRes: task ':app:processReleaseJavaRes'
               processReleaseManifest: task ':app:processReleaseManifest'
               processReleaseResources: task ':app:processReleaseResources'
               processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
               project: project ':app'
               projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@43faf3f6
               projectDir: C:\flutter_tests\gps_test2\android\app
               projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
               projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@29bcf3dd
               projectPath: :app
               projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@12c6f1c4
               properties: {...}
               providers: org.gradle.api.internal.provider.DefaultProviderFactory@5e42380b
               reporting: org.gradle.api.reporting.ReportingExtension_Decorated@246b0ba4
               reportsDir: C:\flutter_tests\gps_test2\build\app\reports
               repositories: repository container
               resolveConfigAttr: task ':app:resolveConfigAttr'
               resources: org.gradle.api.internal.resources.DefaultResourceHandler@301a299c
               rootDir: C:\flutter_tests\gps_test2\android
               rootProject: root project 'android'
               scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@7e761659
               scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@5b9b8082
               serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@27d1867e
               services: ProjectScopeServices
               signingReport: task ':app:signingReport'
               sourceCompatibility: 1.8
               sourceSets: SourceSet container
               splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
               splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest'
               splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
               splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
               standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@5bc064f9
               state: project state 'EXECUTED'
               status: integration
               subprojects: []
               targetCompatibility: 1.8
               tasks: task set
               test: task ':app:test'
               testDebugUnitTest: task ':app:testDebugUnitTest'
               testProfileUnitTest: task ':app:testProfileUnitTest'
               testReleaseUnitTest: task ':app:testReleaseUnitTest'
               testReportDir: C:\flutter_tests\gps_test2\build\app\reports\tests
               testReportDirName: tests
               testResultsDir: C:\flutter_tests\gps_test2\build\app\test-results
               testResultsDirName: test-results
               transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
               transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
               transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
               transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease'
               transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
               transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
               transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
               transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
               transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
               transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
               transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease'
               transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
               transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
               transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
               transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
               transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
               transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
               transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
               transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
               transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
               transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
               transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
               uninstallAll: task ':app:uninstallAll'
               uninstallDebug: task ':app:uninstallDebug'
               uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
               uninstallProfile: task ':app:uninstallProfile'
               uninstallRelease: task ':app:uninstallRelease'
               validateSigningDebug: task ':app:validateSigningDebug'
               validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
               validateSigningProfile: task ':app:validateSigningProfile'
               validateSigningRelease: task ':app:validateSigningRelease'
               version: unspecified
               writeDebugApplicationId: task ':app:writeDebugApplicationId'
               writeProfileApplicationId: task ':app:writeProfileApplicationId'
               writeReleaseApplicationId: task ':app:writeReleaseApplicationId'

               BUILD SUCCESSFUL in 2s
               1 actionable task: 1 executed

[ +10 ms] C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ +9 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ ] package: name='com.example.gpstest2' versionCode='1' versionName='1.0' platformBuildVersionName=''
sdkVersion:'16'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
application-label:'gps_test2'
application-label-af:'gps_test2'
application-label-am:'gps_test2'
application-label-ar:'gps_test2'
application-label-az:'gps_test2'
application-label-be:'gps_test2'
application-label-bg:'gps_test2'
application-label-bn:'gps_test2'
application-label-bs:'gps_test2'
application-label-ca:'gps_test2'
application-label-cs:'gps_test2'
application-label-da:'gps_test2'
application-label-de:'gps_test2'
application-label-el:'gps_test2'
application-label-en-GB:'gps_test2'
application-label-es:'gps_test2'
application-label-es-US:'gps_test2'
application-label-et:'gps_test2'
application-label-eu:'gps_test2'
application-label-fa:'gps_test2'
application-label-fi:'gps_test2'
application-label-fr:'gps_test2'
application-label-fr-CA:'gps_test2'
application-label-gl:'gps_test2'
application-label-gu:'gps_test2'
application-label-hi:'gps_test2'
application-label-hr:'gps_test2'
application-label-hu:'gps_test2'
application-label-hy:'gps_test2'
application-label-in:'gps_test2'
application-label-is:'gps_test2'
application-label-it:'gps_test2'
application-label-iw:'gps_test2'
application-label-ja:'gps_test2'
application-label-ka:'gps_test2'
application-label-kk:'gps_test2'
application-label-km:'gps_test2'
application-label-kn:'gps_test2'
application-label-ko:'gps_test2'
application-label-ky:'gps_test2'
application-label-lo:'gps_test2'
application-label-lt:'gps_test2'
application-label-lv:'gps_test2'
application-label-mk:'gps_test2'
application-label-ml:'gps_test2'
application-label-mn:'gps_test2'
application-label-mr:'gps_test2'
application-label-ms:'gps_test2'
application-label-my:'gps_test2'
application-label-nb:'gps_test2'
application-label-ne:'gps_test2'
application-label-nl:'gps_test2'
application-label-pa:'gps_test2'
application-label-pl:'gps_test2'
application-label-pt-BR:'gps_test2'
application-label-pt-PT:'gps_test2'
application-label-ro:'gps_test2'
application-label-ru:'gps_test2'
application-label-si:'gps_test2'
application-label-sk:'gps_test2'
application-label-sl:'gps_test2'
application-label-sq:'gps_test2'
application-label-sr:'gps_test2'
application-label-sr-Latn:'gps_test2'
application-label-sv:'gps_test2'
application-label-sw:'gps_test2'
application-label-ta:'gps_test2'
application-label-te:'gps_test2'
application-label-th:'gps_test2'
application-label-tl:'gps_test2'
application-label-tr:'gps_test2'
application-label-uk:'gps_test2'
application-label-ur:'gps_test2'
application-label-uz:'gps_test2'
application-label-vi:'gps_test2'
application-label-zh-CN:'gps_test2'
application-label-zh-HK:'gps_test2'
application-label-zh-TW:'gps_test2'
application-label-zu:'gps_test2'
application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application: label='gps_test2' icon='res/mipmap-mdpi-v4/ic_launcher.png'
application-debuggable
launchable-activity: name='com.example.gpstest2.MainActivity' label='' icon=''
feature-group: label=''
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
uses-feature: name='android.hardware.location'
uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.location.gps'
uses-implied-feature: name='android.hardware.location.gps' reason='requested android.permission.ACCESS_FINE_LOCATION permission, and targetSdkVersion < 21'
uses-feature: name='android.hardware.location.network'
uses-implied-feature: name='android.hardware.location.network' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and targetSdkVersion < 21'
main
other-activities
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '----' 'af' 'am' 'ar' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-GB' 'es' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'pa' 'pl' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '160' '240' '320' '480' '640'
native-code: 'armeabi-v7a' 'x86' 'x86_64'
[ +7 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 logcat -v time -t 1
[ +36 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 logcat -v time -t 1
[ ] --------- beginning of main
05-29 15:23:27.258 I/DeviceStateChecker( 7772): DeviceStateChecker cancelled
[ +2 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 logcat -v time
[ +332 ms] DependencyChecker: C:\flutter_tests\gps_test2.packages is newer than 2018-05-29 15:50:06.000
[ +4 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb version
[ +15 ms] Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ +2 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +27 ms] Building APK
[ +8 ms] Running 'gradlew assembleDebug'...
[ +3 ms] [android] C:\flutter_tests\gps_test2\android\gradlew.bat -Ptarget=C:\flutter_tests\gps_test2\lib/main.dart -Ppreview-dart-2=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1344 ms] :app:preBuild UP-TO-DATE
[ ] :location:preBuild UP-TO-DATE
[ ] :location:preDebugBuild UP-TO-DATE
[ +2 ms] :location:checkDebugManifest
[ ] :location:processDebugManifest UP-TO-DATE
[+1281 ms] :app:preDebugBuild
[ +96 ms] :location:compileDebugAidl
[ +1 ms] :app:compileDebugAidl UP-TO-DATE
[ ] :location:packageDebugRenderscript NO-SOURCE
[ +10 ms] :app:compileDebugRenderscript UP-TO-DATE
[ +1 ms] :app:flutterBuildX86Jar UP-TO-DATE
[ +1 ms] :app:checkDebugManifest UP-TO-DATE
[ +1 ms] :app:generateDebugBuildConfig UP-TO-DATE
[ ] :app:prepareLintJar UP-TO-DATE
[ +15 ms] :app:cleanMergeDebugAssets
[ +87 ms] :app:flutterBuildDebug UP-TO-DATE
[ +3 ms] :app:mergeDebugShaders UP-TO-DATE
[ ] :app:compileDebugShaders UP-TO-DATE
[ ] :app:generateDebugAssets UP-TO-DATE
[ +6 ms] :location:mergeDebugShaders UP-TO-DATE
[ ] :location:compileDebugShaders UP-TO-DATE
[ ] :location:generateDebugAssets UP-TO-DATE
[ +11 ms] :location:mergeDebugAssets UP-TO-DATE
[ +10 ms] :app:mergeDebugAssets
[ +393 ms] :app:copyFlutterAssetsDebug
[ +1 ms] :app:generateDebugResValues UP-TO-DATE
[ ] :app:generateDebugResources UP-TO-DATE
[ ] :location:compileDebugRenderscript UP-TO-DATE
[ ] :location:generateDebugResValues UP-TO-DATE
[ ] :location:generateDebugResources UP-TO-DATE
[ +8 ms] :location:packageDebugResources UP-TO-DATE
[+12383 ms] :app:mergeDebugResources
[ ] :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ +449 ms] :app:processDebugManifest
[ +1 ms] :app:splitsDiscoveryTaskDebug UP-TO-DATE
[ +1 ms] :location:platformAttrExtractor UP-TO-DATE
[+1618 ms] :location:processDebugResources
[+3714 ms] :app:processDebugResources
[ ] :app:generateDebugSources
[ ] :location:generateDebugBuildConfig UP-TO-DATE
[ ] :location:prepareLintJar UP-TO-DATE
[ ] :location:generateDebugSources
[+2160 ms] :location:javaPreCompileDebug
[+3333 ms] :location:compileDebugJavaWithJavac
[ ] :location:processDebugJavaRes NO-SOURCE
[ +215 ms] :location:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
[ +279 ms] :app:javaPreCompileDebug
[+1394 ms] :app:compileDebugJavaWithJavac
[ +1 ms] :app:compileDebugNdk NO-SOURCE
[ ] :app:compileDebugSources
[+3675 ms] :app:transformClassesWithDexBuilderForDebug
[ +596 ms] :app:transformDexArchiveWithExternalLibsDexMergerForDebug
[ +121 ms] :app:transformDexArchiveWithDexMergerForDebug
[ ] :app:mergeDebugJniLibFolders UP-TO-DATE
[ +10 ms] :location:compileDebugNdk NO-SOURCE
[ +1 ms] :location:mergeDebugJniLibFolders UP-TO-DATE
[ ] :location:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[ +1 ms] :location:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[+1632 ms] :app:transformNativeLibsWithMergeJniLibsForDebug
[ +2 ms] :app:processDebugJavaRes NO-SOURCE
[+4111 ms] :app:transformResourcesWithMergeJavaResForDebug
[ +2 ms] :app:validateSigningDebug
[+4272 ms] :app:packageDebug
[ ] :app:assembleDebug
[+1388 ms] :location:extractDebugAnnotations
[ +8 ms] :location:mergeDebugConsumerProguardFiles UP-TO-DATE
[ +6 ms] :location:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[ +158 ms] :location:transformClassesAndResourcesWithSyncLibJarsForDebug
[ ] :location:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[ +54 ms] :location:bundleDebug
[ +1 ms] :location:compileDebugSources
[ ] :location:assembleDebug
[ ] BUILD SUCCESSFUL in 44s
[ ] 54 actionable tasks: 25 executed, 29 up-to-date
[ +959 ms] calculateSha: C:\flutter_tests\gps_test2\build\app\outputs\apk/app.apk
[ +404 ms] Built build\app\outputs\apk\debug\app-debug.apk.
[ +1 ms] C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ +12 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ ] package: name='com.example.gpstest2' versionCode='1' versionName='1.0' platformBuildVersionName=''
sdkVersion:'16'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
application-label:'gps_test2'
application-label-af:'gps_test2'
application-label-am:'gps_test2'
application-label-ar:'gps_test2'
application-label-az:'gps_test2'
application-label-be:'gps_test2'
application-label-bg:'gps_test2'
application-label-bn:'gps_test2'
application-label-bs:'gps_test2'
application-label-ca:'gps_test2'
application-label-cs:'gps_test2'
application-label-da:'gps_test2'
application-label-de:'gps_test2'
application-label-el:'gps_test2'
application-label-en-AU:'gps_test2'
application-label-en-GB:'gps_test2'
application-label-en-IN:'gps_test2'
application-label-es:'gps_test2'
application-label-es-US:'gps_test2'
application-label-et:'gps_test2'
application-label-eu:'gps_test2'
application-label-fa:'gps_test2'
application-label-fi:'gps_test2'
application-label-fr:'gps_test2'
application-label-fr-CA:'gps_test2'
application-label-gl:'gps_test2'
application-label-gu:'gps_test2'
application-label-hi:'gps_test2'
application-label-hr:'gps_test2'
application-label-hu:'gps_test2'
application-label-hy:'gps_test2'
application-label-in:'gps_test2'
application-label-is:'gps_test2'
application-label-it:'gps_test2'
application-label-iw:'gps_test2'
application-label-ja:'gps_test2'
application-label-ka:'gps_test2'
application-label-kk:'gps_test2'
application-label-km:'gps_test2'
application-label-kn:'gps_test2'
application-label-ko:'gps_test2'
application-label-ky:'gps_test2'
application-label-lo:'gps_test2'
application-label-lt:'gps_test2'
application-label-lv:'gps_test2'
application-label-mk:'gps_test2'
application-label-ml:'gps_test2'
application-label-mn:'gps_test2'
application-label-mr:'gps_test2'
application-label-ms:'gps_test2'
application-label-my:'gps_test2'
application-label-nb:'gps_test2'
application-label-ne:'gps_test2'
application-label-nl:'gps_test2'
application-label-pa:'gps_test2'
application-label-pl:'gps_test2'
application-label-pt:'gps_test2'
application-label-pt-BR:'gps_test2'
application-label-pt-PT:'gps_test2'
application-label-ro:'gps_test2'
application-label-ru:'gps_test2'
application-label-si:'gps_test2'
application-label-sk:'gps_test2'
application-label-sl:'gps_test2'
application-label-sq:'gps_test2'
application-label-sr:'gps_test2'
application-label-sr-Latn:'gps_test2'
application-label-sv:'gps_test2'
application-label-sw:'gps_test2'
application-label-ta:'gps_test2'
application-label-te:'gps_test2'
application-label-th:'gps_test2'
application-label-tl:'gps_test2'
application-label-tr:'gps_test2'
application-label-uk:'gps_test2'
application-label-ur:'gps_test2'
application-label-uz:'gps_test2'
application-label-vi:'gps_test2'
application-label-zh-CN:'gps_test2'
application-label-zh-HK:'gps_test2'
application-label-zh-TW:'gps_test2'
application-label-zu:'gps_test2'
application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application: label='gps_test2' icon='res/mipmap-mdpi-v4/ic_launcher.png'
application-debuggable
launchable-activity: name='com.example.gpstest2.MainActivity' label='' icon=''
feature-group: label=''
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
uses-feature: name='android.hardware.location'
uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.location.gps'
uses-implied-feature: name='android.hardware.location.gps' reason='requested android.permission.ACCESS_FINE_LOCATION permission, and targetSdkVersion < 21'
uses-feature: name='android.hardware.location.network'
uses-implied-feature: name='android.hardware.location.network' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and targetSdkVersion < 21'
main
other-activities
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--
--' 'af' 'am' 'ar' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-AU' 'en-GB' 'en-IN' 'es' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'pa' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '160' '240' '320' '480' '640'
native-code: 'armeabi-v7a' 'x86' 'x86_64'
[ +1 ms] Stopping app 'app.apk' on Android SDK built for x86.
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am force-stop com.example.gpstest2
[ +243 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell pm list packages com.example.gpstest2
[ +224 ms] package:com.example.gpstest2
[ +2 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.gpstest2.sha1
[ +35 ms] /system/bin/sh: cat: /data/local/tmp/sky.com.example.gpstest2.sha1: No such file or directory
[ ] Installing APK.
[ +1 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb version
[ +15 ms] Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +15 ms] Installing build\app\outputs\apk\app.apk...
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 install -r build\app\outputs\apk\app.apk
[+5508 ms] Success
[ +2 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell echo -n bd143a9ba6a6ae1dc5b377be55fbacb16651e13e > /data/local/tmp/sky.com.example.gpstest2.sha1
[ +45 ms] Android SDK built for x86 startApp
[ +2 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.example.gpstest2/com.example.gpstest2.MainActivity
[ +500 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.gpstest2/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[+2169 ms] I/FlutterActivityDelegate( 2160): onResume setting current activity to this
[ +24 ms] Observatory URL on device: http://127.0.0.1:45313/
[ +6 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 forward tcp:8100 tcp:45313
[ +18 ms] Forwarded host port 8100 to device port 45313 for Observatory
[ +7 ms] Connecting to service protocol: http://127.0.0.1:8100/
[ +379 ms] Successfully connected to service protocol: http://127.0.0.1:8100/
[ +4 ms] getVM: {}
[ +53 ms] getIsolate: {isolateId: isolates/651578406}
[ +3 ms] _flutter.listViews: {}
[+1019 ms] DevFS: Creating new filesystem on the device (null)
[ +1 ms] _createDevFS: {fsName: gps_test2}
[ +27 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.gpstest2/cache/gps_test2NRNMNM/gps_test2/)
[ +2 ms] Updating assets
[ +209 ms] I/flutter ( 2160): GOT 2nd InitState
[ ] I/flutter ( 2160): LOCATION-1{altitude: 0.0, latitude: 51.5219983, longitude: -0.0543, accuracy: 12.303000450134277}
[ +33 ms] I/flutter ( 2160): LOCATION CHANGED2{altitude: 0.0, latitude: 51.5219983, longitude: -0.0543, accuracy: 12.303000450134277}

**## [ +64 ms] D/AndroidRuntime( 2160): Shutting down VM
[ ] E/AndroidRuntime( 2160): FATAL EXCEPTION: main
[ ] E/AndroidRuntime( 2160): Process: com.example.gpstest2, PID: 2160
[ ] E/AndroidRuntime( 2160): java.lang.RuntimeException: Location permission denied
[ ] E/AndroidRuntime( 2160): at com.lyokone.location.LocationPlugin$2.onLocationResult(LocationPlugin.java:141)
[ ] E/AndroidRuntime( 2160): at

com.google.android.gms.internal.location.zzau.notifyListener(Unknown Source)**
[ ] E/AndroidRuntime( 2160): at com.google.android.gms.common.api.internal.ListenerHolder.notifyListenerInternal(Unknown Source)
[ ] E/AndroidRuntime( 2160): at com.google.android.gms.common.api.internal.ListenerHolder$zza.handleMessage(Unknown Source)
[ ] E/AndroidRuntime( 2160): at android.os.Handler.dispatchMessage(Handler.java:102)
[ ] E/AndroidRuntime( 2160): at android.os.Looper.loop(Looper.java:154)
[ ] E/AndroidRuntime( 2160): at android.app.ActivityThread.main(ActivityThread.java:6119)
[ ] E/AndroidRuntime( 2160): at java.lang.reflect.Method.invoke(Native Method)
[ ] E/AndroidRuntime( 2160): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
[ ] E/AndroidRuntime( 2160): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
[ +248 ms] D/ ( 2160): HostConnection::get() New Host Connection established 0x9b4e26c0, tid 2190
[ +15 ms] D/EGL_emulation( 2160): eglMakeCurrent: 0x9b488480: ver 3 0 (tinfo 0x9b4fb7e0)
[ +22 ms] I/flutter ( 2160): LOCATION CHANGED{altitude: 0.0, latitude: 51.5219983, longitude: -0.0543, accuracy: 12.303000450134277}
[ +902 ms] Syncing files to device Android SDK built for x86...
[ +7 ms] DevFS: Starting sync from LocalDirectory: 'C:\flutter_tests\gps_test2'
[ ] Scanning project files
[ +7 ms] Scanning package files
[ +145 ms] Scanning asset files
[ +1 ms] Scanning for deleted files
[ +27 ms] Compiling dart to kernel with 415 updated files
[ +5 ms] c:\flutter_dev\flutter\bin\cache\dart-sdk\bin\dart c:\flutter_dev\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root c:\flutter_dev\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill --packages C:\flutter_tests\gps_test2.packages --filesystem-scheme org-dartlang-root
[+4778 ms] Updating files
[ +288 ms] DevFS sync failed. Lost connection to device: SocketException: Write failed (OS Error: An existing connection was forcibly closed by the remote host.
, errno = 10054), address = 127.0.0.1, port = 61079
[ +22 ms] "flutter run" took 68,533ms.

#0 throwToolExit (package:flutter_tools/src/base/common.dart:28)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:405)

#2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:344)

#3 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:279)

#4 AppContext.run. (package:flutter_tools/src/base/context.dart:142)

#5 _rootRun (dart:async/zone.dart:1126)
#6 _CustomZone.run (dart:async/zone.dart:1023)
#7 runZoned (dart:async/zone.dart:1501)
#8 AppContext.run (package:flutter_tools/src/base/context.dart:141)

#9 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270)
#10 CommandRunner.runCommand (package:args/command_runner.dart:194)

#11 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:309)

#12 AppContext.run. (package:flutter_tools/src/base/context.dart:142)

#13 _rootRun (dart:async/zone.dart:1126)
#14 _CustomZone.run (dart:async/zone.dart:1023)
#15 runZoned (dart:async/zone.dart:1501)
#16 AppContext.run (package:flutter_tools/src/base/context.dart:141)

#17 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265)

#18 CommandRunner.run. (package:args/command_runner.dart:109)
#19 new Future.sync (dart:async/future.dart:222)
#20 CommandRunner.run (package:args/command_runner.dart:109)
#21 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174)
#22 run. (package:flutter_tools/runner.dart:54)

#23 AppContext.run. (package:flutter_tools/src/base/context.dart:142)

#24 _rootRun (dart:async/zone.dart:1126)
#25 _CustomZone.run (dart:async/zone.dart:1023)
#26 runZoned (dart:async/zone.dart:1501)
#27 AppContext.run (package:flutter_tools/src/base/context.dart:141)

#28 runInContext (package:flutter_tools/src/context_runner.dart:43)

#29 run (package:flutter_tools/runner.dart:49)
#30 main (package:flutter_tools/executable.dart:49)

#31 main (file:///c:/flutter_dev/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#32 _startIsolate. (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#33 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)

[ +12 ms] Retrying writing "build/flutter_assets/LICENSE" to DevFS due to error: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100/
[ +1 ms] Retrying writing "build/flutter_assets/FontManifest.json" to DevFS due to error: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100/
[ +1 ms] Retrying writing "build/flutter_assets/AssetManifest.json" to DevFS due to error: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100/
[ +1 ms] Retrying writing "build/flutter_assets/fonts/MaterialIcons-Regular.ttf" to DevFS due to error: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100/
[ +1 ms] Retrying writing "build/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf" to DevFS due to error: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:8100/
[ +6 ms] Service protocol connection closed.
[ ] Lost connection to device.

C:\flutter_tests\gps_test2>


## FLUTTER LOCATION 1.2 RUN

C:\flutter_tests\gps_test2>flutter run -v
[ +37 ms] [c:\flutter_dev\flutter] git rev-parse --abbrev-ref --symbolic @{u}
[ +57 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/beta
[ ] [c:\flutter_dev\flutter] git rev-parse --abbrev-ref HEAD
[ +26 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] [c:\flutter_dev\flutter] git ls-remote --get-url origin
[ +29 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] https://github.com/flutter/flutter.git
[ ] [c:\flutter_dev\flutter] git log -n 1 --pretty=format:%H
[ +28 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] f9bb4289e9fd861d70ae78bcc3a042ef1b35cc9d
[ ] [c:\flutter_dev\flutter] git log -n 1 --pretty=format:%ar
[ +25 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 2 weeks ago
[ ] [c:\flutter_dev\flutter] git describe --match v*.. --first-parent --long --tags
[ +28 ms] Exit code 0 from: git describe --match v*.. --first-parent --long --tags
[ ] v0.4.4-0-gf9bb4289e
[ +318 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ +16 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_google_phone_x86 model:Android_SDK_built_for_x86 device:generic_x86 transport_id:12
[ +102 ms] Found plugin location at C:\Users\john2\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\location-1.2.0
[ +160 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell getprop
[ +39 ms] ro.hardware = ranchu
[ +21 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +548 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[ +7 ms] Initializing gradle...
[ ] Using gradle from C:\flutter_tests\gps_test2\android\gradlew.bat.
[ +120 ms] C:\flutter_tests\gps_test2\android\gradlew.bat -v
[ +527 ms]
------------------------------------------------------------
Gradle 4.1
------------------------------------------------------------

               Build time:   2017-08-07 14:38:48 UTC
               Revision:     941559e020f6c357ebb08d5c67acdb858a3defc2

               Groovy:       2.4.11
               Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
               JVM:          1.8.0_152-release (JetBrains s.r.o 25.152-b02)
               OS:           Windows 10 10.0 amd64

[ +6 ms] Resolving dependencies...
[ ] [android] C:\flutter_tests\gps_test2\android\gradlew.bat app:properties
[+2244 ms] :app:properties

               ------------------------------------------------------------
               Project :app
               ------------------------------------------------------------

               allprojects: [project ':app']
               android: com.android.build.gradle.AppExtension_Decorated@a5d7a7a
               androidDependencies: task ':app:androidDependencies'
               ant: org.gradle.api.internal.project.DefaultAntBuilder@29cef977
               antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@cfadcc9
               archivesBaseName: app
               artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@1122eab5
               asDynamicObject: DynamicObject for project ':app'
               assemble: task ':app:assemble'
               assembleAndroidTest: task ':app:assembleAndroidTest'
               assembleDebug: task ':app:assembleDebug'
               assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest'
               assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
               assembleProfile: task ':app:assembleProfile'
               assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
               assembleRelease: task ':app:assembleRelease'
               assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
               baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@70cdcc41
               buildDependents: task ':app:buildDependents'
               buildDir: C:\flutter_tests\gps_test2\build\app
               buildFile: C:\flutter_tests\gps_test2\android\app\build.gradle
               buildNeeded: task ':app:buildNeeded'
               buildOutputs: BaseVariantOutput container
               buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@2e96866e
               buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@74d00be1
               bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
               bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest'
               bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest'
               bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
               bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest'
               bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
               bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest'
               check: task ':app:check'
               checkDebugManifest: task ':app:checkDebugManifest'
               checkProfileManifest: task ':app:checkProfileManifest'
               checkReleaseManifest: task ':app:checkReleaseManifest'
               childProjects: {}
               class: class org.gradle.api.internal.project.DefaultProject_Decorated
               classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@72a1308c
               cleanBuildCache: task ':app:cleanBuildCache'
               compileDebugAidl: task ':app:compileDebugAidl'
               compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl'
               compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac'
               compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk'
               compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript'
               compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders'
               compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources'
               compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac'
               compileDebugNdk: task ':app:compileDebugNdk'
               compileDebugRenderscript: task ':app:compileDebugRenderscript'
               compileDebugShaders: task ':app:compileDebugShaders'
               compileDebugSources: task ':app:compileDebugSources'
               compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac'
               compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources'
               compileLint: task ':app:compileLint'
               compileProfileAidl: task ':app:compileProfileAidl'
               compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac'
               compileProfileNdk: task ':app:compileProfileNdk'
               compileProfileRenderscript: task ':app:compileProfileRenderscript'
               compileProfileShaders: task ':app:compileProfileShaders'
               compileProfileSources: task ':app:compileProfileSources'
               compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac'
               compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources'
               compileReleaseAidl: task ':app:compileReleaseAidl'
               compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac'
               compileReleaseNdk: task ':app:compileReleaseNdk'
               compileReleaseRenderscript: task ':app:compileReleaseRenderscript'
               compileReleaseShaders: task ':app:compileReleaseShaders'
               compileReleaseSources: task ':app:compileReleaseSources'
               compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac'
               compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources'
               components: SoftwareComponentInternal set
               configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@6c10555d
               configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@762f0b47
               configurations: configuration container
               connectedAndroidTest: task ':app:connectedAndroidTest'
               connectedCheck: task ':app:connectedCheck'
               connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest'
               consumeConfigAttr: task ':app:consumeConfigAttr'
               convention: org.gradle.api.internal.plugins.DefaultConvention@2549960
               copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
               copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile'
               copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease'
               createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests'
               createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests'
               createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests'
               defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@790aecf6
               defaultTasks: []
               deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@175ee437
               dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@19a5b0a8
               depth: 1
               description: null
               deviceAndroidTest: task ':app:deviceAndroidTest'
               deviceCheck: task ':app:deviceCheck'
               displayName: project ':app'
               distsDir: C:\flutter_tests\gps_test2\build\app\distributions
               distsDirName: distributions
               docsDir: C:\flutter_tests\gps_test2\build\app\docs
               docsDirName: docs
               ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@3f9cb565
               extensions: org.gradle.api.internal.plugins.DefaultConvention@2549960
               extractProguardFiles: task ':app:extractProguardFiles'
               fileOperations: org.gradle.api.internal.file.DefaultFileOperations@11df933c
               fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@71c0a26c
               flutter: FlutterExtension_Decorated@45d46c0c
               flutterBuildDebug: task ':app:flutterBuildDebug'
               flutterBuildProfile: task ':app:flutterBuildProfile'
               flutterBuildRelease: task ':app:flutterBuildRelease'
               flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
               generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets'
               generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig'
               generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues'
               generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources'
               generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources'
               generateDebugAssets: task ':app:generateDebugAssets'
               generateDebugBuildConfig: task ':app:generateDebugBuildConfig'
               generateDebugResValues: task ':app:generateDebugResValues'
               generateDebugResources: task ':app:generateDebugResources'
               generateDebugSources: task ':app:generateDebugSources'
               generateProfileAssets: task ':app:generateProfileAssets'
               generateProfileBuildConfig: task ':app:generateProfileBuildConfig'
               generateProfileResValues: task ':app:generateProfileResValues'
               generateProfileResources: task ':app:generateProfileResources'
               generateProfileSources: task ':app:generateProfileSources'
               generateReleaseAssets: task ':app:generateReleaseAssets'
               generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig'
               generateReleaseResValues: task ':app:generateReleaseResValues'
               generateReleaseResources: task ':app:generateReleaseResources'
               generateReleaseSources: task ':app:generateReleaseSources'
               gradle: build 'android'
               group: android
               identityPath: :app
               inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@1fb9de4e
               installDebug: task ':app:installDebug'
               installDebugAndroidTest: task ':app:installDebugAndroidTest'
               installProfile: task ':app:installProfile'
               installRelease: task ':app:installRelease'
               javaPreCompileDebug: task ':app:javaPreCompileDebug'
               javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest'
               javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest'
               javaPreCompileProfile: task ':app:javaPreCompileProfile'
               javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest'
               javaPreCompileRelease: task ':app:javaPreCompileRelease'
               javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest'
               layout: org.gradle.api.internal.file.DefaultProjectLayout@7292f8f6
               libsDir: C:\flutter_tests\gps_test2\build\app\libs
               libsDirName: libs
               lint: task ':app:lint'
               lintDebug: task ':app:lintDebug'
               lintProfile: task ':app:lintProfile'
               lintRelease: task ':app:lintRelease'
               lintVitalRelease: task ':app:lintVitalRelease'
               logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@55875af3
               logging: org.gradle.internal.logging.services.DefaultLoggingManager@6b5f70a
               mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets'
               mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders'
               mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources'
               mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders'
               mergeDebugAssets: task ':app:mergeDebugAssets'
               mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
               mergeDebugResources: task ':app:mergeDebugResources'
               mergeDebugShaders: task ':app:mergeDebugShaders'
               mergeProfileAssets: task ':app:mergeProfileAssets'
               mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders'
               mergeProfileResources: task ':app:mergeProfileResources'
               mergeProfileShaders: task ':app:mergeProfileShaders'
               mergeReleaseAssets: task ':app:mergeReleaseAssets'
               mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders'
               mergeReleaseResources: task ':app:mergeReleaseResources'
               mergeReleaseShaders: task ':app:mergeReleaseShaders'
               mockableAndroidJar: task ':app:mockableAndroidJar'
               modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@60674fdc
               modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@3632ccae
               module: org.gradle.api.internal.artifacts.ProjectBackedModule@203afa68
               name: app
               normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@317da630
               objects: org.gradle.api.internal.model.DefaultObjectFactory@7ee94bc2
               org.gradle.jvmargs: -Xmx1536M
               packageDebug: task ':app:packageDebug'
               packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
               packageProfile: task ':app:packageProfile'
               packageRelease: task ':app:packageRelease'
               parent: root project 'android'
               parentIdentifier: root project 'android'
               path: :app
               platformAttrExtractor: task ':app:platformAttrExtractor'
               pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@544dbda1
               plugins: [org.gradle.api.plugins.HelpTasksPlugin@691c4ef3, com.android.build.gradle.api.AndroidBasePlugin@3609f381, org.gradle.language.base.plugins.LifecycleBasePlugin@128819de, org.gradle.api.plugins.BasePlugin@557ed85d, org.gradle.api.plugins.ReportingBasePlugin@74ee23a6, org.gradle.platform.base.plugins.ComponentBasePlugin@44093cc0, org.gradle.language.base.plugins.LanguageBasePlugin@41ffc4f4, org.gradle.platform.base.plugins.BinaryBasePlugin@1cd8c8d, org.gradle.api.plugins.JavaBasePlugin@4e934544, com.android.build.gradle.internal.coverage.JacocoPlugin@39b71e60, com.android.build.gradle.AppPlugin@37a61ad1, FlutterPlugin@1f85ed0b]
               preBuild: task ':app:preBuild'
               preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild'
               preDebugBuild: task ':app:preDebugBuild'
               preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
               preProfileBuild: task ':app:preProfileBuild'
               preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
               preReleaseBuild: task ':app:preReleaseBuild'
               preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
               prepareLintJar: task ':app:prepareLintJar'
               processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes'
               processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest'
               processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources'
               processDebugJavaRes: task ':app:processDebugJavaRes'
               processDebugManifest: task ':app:processDebugManifest'
               processDebugResources: task ':app:processDebugResources'
               processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes'
               processOperations: org.gradle.api.internal.file.DefaultFileOperations@11df933c
               processProfileJavaRes: task ':app:processProfileJavaRes'
               processProfileManifest: task ':app:processProfileManifest'
               processProfileResources: task ':app:processProfileResources'
               processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes'
               processReleaseJavaRes: task ':app:processReleaseJavaRes'
               processReleaseManifest: task ':app:processReleaseManifest'
               processReleaseResources: task ':app:processReleaseResources'
               processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes'
               project: project ':app'
               projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@7de91d85
               projectDir: C:\flutter_tests\gps_test2\android\app
               projectEvaluationBroadcaster: ProjectEvaluationListener broadcast
               projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@27aab44b
               projectPath: :app
               projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@7b3acaa8
               properties: {...}
               providers: org.gradle.api.internal.provider.DefaultProviderFactory@5e42380b
               reporting: org.gradle.api.reporting.ReportingExtension_Decorated@42a3d0db
               reportsDir: C:\flutter_tests\gps_test2\build\app\reports
               repositories: repository container
               resolveConfigAttr: task ':app:resolveConfigAttr'
               resources: org.gradle.api.internal.resources.DefaultResourceHandler@7713e83f
               rootDir: C:\flutter_tests\gps_test2\android
               rootProject: root project 'android'
               scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@5e9127a
               scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@282bf7e5
               serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@7452cf33
               services: ProjectScopeServices
               signingReport: task ':app:signingReport'
               sourceCompatibility: 1.8
               sourceSets: SourceSet container
               splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug'
               splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest'
               splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile'
               splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease'
               standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@6b5f70a
               state: project state 'EXECUTED'
               status: integration
               subprojects: []
               targetCompatibility: 1.8
               tasks: task set
               test: task ':app:test'
               testDebugUnitTest: task ':app:testDebugUnitTest'
               testProfileUnitTest: task ':app:testProfileUnitTest'
               testReleaseUnitTest: task ':app:testReleaseUnitTest'
               testReportDir: C:\flutter_tests\gps_test2\build\app\reports\tests
               testReportDirName: tests
               testResultsDir: C:\flutter_tests\gps_test2\build\app\test-results
               testResultsDirName: test-results
               transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug'
               transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest'
               transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile'
               transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease'
               transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug'
               transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
               transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile'
               transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
               transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest'
               transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile'
               transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease'
               transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug'
               transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest'
               transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile'
               transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease'
               transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug'
               transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
               transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest'
               transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile'
               transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest'
               transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease'
               transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
               uninstallAll: task ':app:uninstallAll'
               uninstallDebug: task ':app:uninstallDebug'
               uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest'
               uninstallProfile: task ':app:uninstallProfile'
               uninstallRelease: task ':app:uninstallRelease'
               validateSigningDebug: task ':app:validateSigningDebug'
               validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest'
               validateSigningProfile: task ':app:validateSigningProfile'
               validateSigningRelease: task ':app:validateSigningRelease'
               version: unspecified
               writeDebugApplicationId: task ':app:writeDebugApplicationId'
               writeProfileApplicationId: task ':app:writeProfileApplicationId'
               writeReleaseApplicationId: task ':app:writeReleaseApplicationId'

               BUILD SUCCESSFUL in 2s
               1 actionable task: 1 executed

[ +10 ms] C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ +88 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ +1 ms] package: name='com.example.gpstest2' versionCode='1' versionName='1.0' platformBuildVersionName=''
sdkVersion:'16'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
application-label:'gps_test2'
application-label-af:'gps_test2'
application-label-am:'gps_test2'
application-label-ar:'gps_test2'
application-label-az:'gps_test2'
application-label-be:'gps_test2'
application-label-bg:'gps_test2'
application-label-bn:'gps_test2'
application-label-bs:'gps_test2'
application-label-ca:'gps_test2'
application-label-cs:'gps_test2'
application-label-da:'gps_test2'
application-label-de:'gps_test2'
application-label-el:'gps_test2'
application-label-en-AU:'gps_test2'
application-label-en-GB:'gps_test2'
application-label-en-IN:'gps_test2'
application-label-es:'gps_test2'
application-label-es-US:'gps_test2'
application-label-et:'gps_test2'
application-label-eu:'gps_test2'
application-label-fa:'gps_test2'
application-label-fi:'gps_test2'
application-label-fr:'gps_test2'
application-label-fr-CA:'gps_test2'
application-label-gl:'gps_test2'
application-label-gu:'gps_test2'
application-label-hi:'gps_test2'
application-label-hr:'gps_test2'
application-label-hu:'gps_test2'
application-label-hy:'gps_test2'
application-label-in:'gps_test2'
application-label-is:'gps_test2'
application-label-it:'gps_test2'
application-label-iw:'gps_test2'
application-label-ja:'gps_test2'
application-label-ka:'gps_test2'
application-label-kk:'gps_test2'
application-label-km:'gps_test2'
application-label-kn:'gps_test2'
application-label-ko:'gps_test2'
application-label-ky:'gps_test2'
application-label-lo:'gps_test2'
application-label-lt:'gps_test2'
application-label-lv:'gps_test2'
application-label-mk:'gps_test2'
application-label-ml:'gps_test2'
application-label-mn:'gps_test2'
application-label-mr:'gps_test2'
application-label-ms:'gps_test2'
application-label-my:'gps_test2'
application-label-nb:'gps_test2'
application-label-ne:'gps_test2'
application-label-nl:'gps_test2'
application-label-pa:'gps_test2'
application-label-pl:'gps_test2'
application-label-pt:'gps_test2'
application-label-pt-BR:'gps_test2'
application-label-pt-PT:'gps_test2'
application-label-ro:'gps_test2'
application-label-ru:'gps_test2'
application-label-si:'gps_test2'
application-label-sk:'gps_test2'
application-label-sl:'gps_test2'
application-label-sq:'gps_test2'
application-label-sr:'gps_test2'
application-label-sr-Latn:'gps_test2'
application-label-sv:'gps_test2'
application-label-sw:'gps_test2'
application-label-ta:'gps_test2'
application-label-te:'gps_test2'
application-label-th:'gps_test2'
application-label-tl:'gps_test2'
application-label-tr:'gps_test2'
application-label-uk:'gps_test2'
application-label-ur:'gps_test2'
application-label-uz:'gps_test2'
application-label-vi:'gps_test2'
application-label-zh-CN:'gps_test2'
application-label-zh-HK:'gps_test2'
application-label-zh-TW:'gps_test2'
application-label-zu:'gps_test2'
application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application: label='gps_test2' icon='res/mipmap-mdpi-v4/ic_launcher.png'
application-debuggable
launchable-activity: name='com.example.gpstest2.MainActivity' label='' icon=''
feature-group: label=''
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
uses-feature: name='android.hardware.location'
uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.location.gps'
uses-implied-feature: name='android.hardware.location.gps' reason='requested android.permission.ACCESS_FINE_LOCATION permission, and targetSdkVersion < 21'
uses-feature: name='android.hardware.location.network'
uses-implied-feature: name='android.hardware.location.network' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and targetSdkVersion < 21'
main
other-activities
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '----' 'af' 'am' 'ar' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-AU' 'en-GB' 'en-IN' 'es' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'pa' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '160' '240' '320' '480' '640'
native-code: 'armeabi-v7a' 'x86' 'x86_64'
[ +43 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 logcat -v time -t 1
[ +54 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 logcat -v time -t 1
[ ] --------- beginning of main
05-29 15:26:14.950 I/PlayCommon( 1317): [719] com.google.android.play.b.h.a(580): Successfully uploaded logs.
[ +3 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 logcat -v time
[ +282 ms] DependencyChecker: C:\flutter_tests\gps_test2.packages is newer than 2018-05-29 16:24:12.000
[ +4 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb version
[ +17 ms] Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ +3 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +24 ms] Building APK
[ +7 ms] Running 'gradlew assembleDebug'...
[ +2 ms] [android] C:\flutter_tests\gps_test2\android\gradlew.bat -Ptarget=C:\flutter_tests\gps_test2\lib/main.dart -Ppreview-dart-2=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +764 ms] :app:preBuild UP-TO-DATE
[ +1 ms] :location:preBuild UP-TO-DATE
[ ] :location:preDebugBuild UP-TO-DATE
[ +7 ms] :location:checkDebugManifest
[ ] :location:processDebugManifest UP-TO-DATE
[ +274 ms] :app:preDebugBuild
[ +24 ms] :location:compileDebugAidl
[ ] :app:compileDebugAidl UP-TO-DATE
[ ] :location:packageDebugRenderscript NO-SOURCE
[ ] :app:compileDebugRenderscript UP-TO-DATE
[ +11 ms] :app:flutterBuildX86Jar UP-TO-DATE
[ +2 ms] :app:checkDebugManifest UP-TO-DATE
[ ] :app:generateDebugBuildConfig UP-TO-DATE
[ ] :app:prepareLintJar UP-TO-DATE
[ +21 ms] :app:cleanMergeDebugAssets
[ +53 ms] :app:flutterBuildDebug UP-TO-DATE
[ +10 ms] :app:mergeDebugShaders UP-TO-DATE
[ ] :app:compileDebugShaders UP-TO-DATE
[ ] :app:generateDebugAssets UP-TO-DATE
[ ] :location:mergeDebugShaders UP-TO-DATE
[ ] :location:compileDebugShaders UP-TO-DATE
[ ] :location:generateDebugAssets UP-TO-DATE
[ ] :location:mergeDebugAssets UP-TO-DATE
[ +15 ms] :app:mergeDebugAssets
[ +462 ms] :app:copyFlutterAssetsDebug
[ +1 ms] :app:generateDebugResValues UP-TO-DATE
[ ] :app:generateDebugResources UP-TO-DATE
[ ] :location:compileDebugRenderscript UP-TO-DATE
[ ] :location:generateDebugResValues UP-TO-DATE
[ ] :location:generateDebugResources UP-TO-DATE
[ +9 ms] :location:packageDebugResources UP-TO-DATE
[+4805 ms] :app:mergeDebugResources
[ +2 ms] :app:createDebugCompatibleScreenManifests UP-TO-DATE
[ +129 ms] :app:processDebugManifest
[ +1 ms] :app:splitsDiscoveryTaskDebug UP-TO-DATE
[ ] :location:platformAttrExtractor UP-TO-DATE
[ +343 ms] :location:processDebugResources
[ +378 ms] :app:processDebugResources
[ +1 ms] :app:generateDebugSources
[ +2 ms] :location:generateDebugBuildConfig UP-TO-DATE
[ ] :location:prepareLintJar UP-TO-DATE
[ ] :location:generateDebugSources
[+1142 ms] :location:javaPreCompileDebug
[+1869 ms] :location:compileDebugJavaWithJavac
[ +10 ms] :location:processDebugJavaRes NO-SOURCE
[ +52 ms] :location:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug
[ +283 ms] :app:javaPreCompileDebug
[ +458 ms] :app:compileDebugJavaWithJavac
[ ] :app:compileDebugNdk NO-SOURCE
[ ] :app:compileDebugSources
[+1670 ms] :app:transformClassesWithDexBuilderForDebug
[ +454 ms] :app:transformDexArchiveWithExternalLibsDexMergerForDebug
[ +108 ms] :app:transformDexArchiveWithDexMergerForDebug
[ ] :app:mergeDebugJniLibFolders UP-TO-DATE
[ ] :location:compileDebugNdk NO-SOURCE
[ ] :location:mergeDebugJniLibFolders UP-TO-DATE
[ ] :location:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
[ ] :location:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[+1107 ms] :app:transformNativeLibsWithMergeJniLibsForDebug
[ ] :app:processDebugJavaRes NO-SOURCE
[+2098 ms] :app:transformResourcesWithMergeJavaResForDebug
[ ] :app:validateSigningDebug
[+2591 ms] :app:packageDebug
[ ] :app:assembleDebug
[ +345 ms] :location:extractDebugAnnotations
[ +1 ms] :location:mergeDebugConsumerProguardFiles UP-TO-DATE
[ +2 ms] :location:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
[ +52 ms] :location:transformClassesAndResourcesWithSyncLibJarsForDebug
[ ] :location:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[ +125 ms] :location:bundleDebug
[ +2 ms] :location:compileDebugSources
[ ] :location:assembleDebug
[ ] BUILD SUCCESSFUL in 19s
[ ] 54 actionable tasks: 25 executed, 29 up-to-date
[ +574 ms] calculateSha: C:\flutter_tests\gps_test2\build\app\outputs\apk/app.apk
[ +380 ms] Built build\app\outputs\apk\debug\app-debug.apk.
[ +1 ms] C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ +13 ms] Exit code 0 from: C:\Users\john2\AppData\Local\Android\sdk\build-tools\27.0.3\aapt dump badging build\app\outputs\apk\app.apk
[ ] package: name='com.example.gpstest2' versionCode='1' versionName='1.0' platformBuildVersionName=''
sdkVersion:'16'
targetSdkVersion:'19'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
application-label:'gps_test2'
application-label-af:'gps_test2'
application-label-am:'gps_test2'
application-label-ar:'gps_test2'
application-label-az:'gps_test2'
application-label-be:'gps_test2'
application-label-bg:'gps_test2'
application-label-bn:'gps_test2'
application-label-bs:'gps_test2'
application-label-ca:'gps_test2'
application-label-cs:'gps_test2'
application-label-da:'gps_test2'
application-label-de:'gps_test2'
application-label-el:'gps_test2'
application-label-en-GB:'gps_test2'
application-label-es:'gps_test2'
application-label-es-US:'gps_test2'
application-label-et:'gps_test2'
application-label-eu:'gps_test2'
application-label-fa:'gps_test2'
application-label-fi:'gps_test2'
application-label-fr:'gps_test2'
application-label-fr-CA:'gps_test2'
application-label-gl:'gps_test2'
application-label-gu:'gps_test2'
application-label-hi:'gps_test2'
application-label-hr:'gps_test2'
application-label-hu:'gps_test2'
application-label-hy:'gps_test2'
application-label-in:'gps_test2'
application-label-is:'gps_test2'
application-label-it:'gps_test2'
application-label-iw:'gps_test2'
application-label-ja:'gps_test2'
application-label-ka:'gps_test2'
application-label-kk:'gps_test2'
application-label-km:'gps_test2'
application-label-kn:'gps_test2'
application-label-ko:'gps_test2'
application-label-ky:'gps_test2'
application-label-lo:'gps_test2'
application-label-lt:'gps_test2'
application-label-lv:'gps_test2'
application-label-mk:'gps_test2'
application-label-ml:'gps_test2'
application-label-mn:'gps_test2'
application-label-mr:'gps_test2'
application-label-ms:'gps_test2'
application-label-my:'gps_test2'
application-label-nb:'gps_test2'
application-label-ne:'gps_test2'
application-label-nl:'gps_test2'
application-label-pa:'gps_test2'
application-label-pl:'gps_test2'
application-label-pt-BR:'gps_test2'
application-label-pt-PT:'gps_test2'
application-label-ro:'gps_test2'
application-label-ru:'gps_test2'
application-label-si:'gps_test2'
application-label-sk:'gps_test2'
application-label-sl:'gps_test2'
application-label-sq:'gps_test2'
application-label-sr:'gps_test2'
application-label-sr-Latn:'gps_test2'
application-label-sv:'gps_test2'
application-label-sw:'gps_test2'
application-label-ta:'gps_test2'
application-label-te:'gps_test2'
application-label-th:'gps_test2'
application-label-tl:'gps_test2'
application-label-tr:'gps_test2'
application-label-uk:'gps_test2'
application-label-ur:'gps_test2'
application-label-uz:'gps_test2'
application-label-vi:'gps_test2'
application-label-zh-CN:'gps_test2'
application-label-zh-HK:'gps_test2'
application-label-zh-TW:'gps_test2'
application-label-zu:'gps_test2'
application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application: label='gps_test2' icon='res/mipmap-mdpi-v4/ic_launcher.png'
application-debuggable
launchable-activity: name='com.example.gpstest2.MainActivity' label='' icon=''
feature-group: label=''
uses-feature: name='android.hardware.faketouch'
uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
uses-feature: name='android.hardware.location'
uses-implied-feature: name='android.hardware.location' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and requested android.permission.ACCESS_FINE_LOCATION permission'
uses-feature: name='android.hardware.location.gps'
uses-implied-feature: name='android.hardware.location.gps' reason='requested android.permission.ACCESS_FINE_LOCATION permission, and targetSdkVersion < 21'
uses-feature: name='android.hardware.location.network'
uses-implied-feature: name='android.hardware.location.network' reason='requested android.permission.ACCESS_COARSE_LOCATION permission, and targetSdkVersion < 21'
main
other-activities
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--
--' 'af' 'am' 'ar' 'az' 'be' 'bg' 'bn' 'bs' 'ca' 'cs' 'da' 'de' 'el' 'en-GB' 'es' 'es-US' 'et' 'eu' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gu' 'hi' 'hr' 'hu' 'hy' 'in' 'is' 'it' 'iw' 'ja' 'ka' 'kk' 'km' 'kn' 'ko' 'ky' 'lo' 'lt' 'lv' 'mk' 'ml' 'mn' 'mr' 'ms' 'my' 'nb' 'ne' 'nl' 'pa' 'pl' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'sk' 'sl' 'sq' 'sr' 'sr-Latn' 'sv' 'sw' 'ta' 'te' 'th' 'tl' 'tr' 'uk' 'ur' 'uz' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '160' '240' '320' '480' '640'
native-code: 'armeabi-v7a' 'x86' 'x86_64'
[ +1 ms] Stopping app 'app.apk' on Android SDK built for x86.
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am force-stop com.example.gpstest2
[ +239 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell pm list packages com.example.gpstest2
[ +253 ms] package:com.example.gpstest2
[ +2 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.gpstest2.sha1
[ +21 ms] bd143a9ba6a6ae1dc5b377be55fbacb16651e13e
[ +1 ms] Installing APK.
[ +1 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb version
[ +30 ms] Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +16 ms] Installing build\app\outputs\apk\app.apk...
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 install -r build\app\outputs\apk\app.apk
[+2721 ms] Success
[ +1 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell echo -n 108e9a8826c4f2c662ce8c8fa3c8cc33eddd221b > /data/local/tmp/sky.com.example.gpstest2.sha1
[ +28 ms] Android SDK built for x86 startApp
[ +2 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.example.gpstest2/com.example.gpstest2.MainActivity
[ +328 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.gpstest2/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[+1223 ms] I/FlutterActivityDelegate( 2512): onResume setting current activity to this
[ +199 ms] Observatory URL on device: http://127.0.0.1:34280/
[ +11 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 forward tcp:8101 tcp:34280
[ +26 ms] Forwarded host port 8101 to device port 34280 for Observatory
[ +7 ms] Connecting to service protocol: http://127.0.0.1:8101/
[ +279 ms] Successfully connected to service protocol: http://127.0.0.1:8101/
[ +3 ms] getVM: {}
[ +14 ms] getIsolate: {isolateId: isolates/848563893}
[ +2 ms] _flutter.listViews: {}
[ +401 ms] DevFS: Creating new filesystem on the device (null)
[ +3 ms] _createDevFS: {fsName: gps_test2}
[ +3 ms] D/EGL_emulation( 2512): eglMakeCurrent: 0xa1e854e0: ver 3 0 (tinfo 0xa1e83360)
[ +78 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.gpstest2/cache/gps_test2HTVLUV/gps_test2/)
[ +3 ms] Updating assets
[ +433 ms] D/ ( 2512): HostConnection::get() New Host Connection established 0xa1e9da40, tid 2533
[ +1 ms] D/EGL_emulation( 2512): eglMakeCurrent: 0x9b4885a0: ver 3 0 (tinfo 0xa1e83270)
[ +4 ms] I/flutter ( 2512): GOT 2nd InitState
[ +2 ms] I/flutter ( 2512): LOCATION-1{altitude: 0.0, latitude: 51.5187983, longitude: -0.0142317, accuracy: 20.0}
[ +14 ms] I/flutter ( 2512): LOCATION CHANGED2{altitude: 0.0, latitude: 51.5187983, longitude: -0.0142317, accuracy: 20.0}
[ +16 ms] I/flutter ( 2512): LOCATION CHANGED{altitude: 0.0, latitude: 51.5187983, longitude: -0.0142317, accuracy: 20.0}
[ +268 ms] Syncing files to device Android SDK built for x86...
[ +4 ms] DevFS: Starting sync from LocalDirectory: 'C:\flutter_tests\gps_test2'
[ ] Scanning project files
[ +3 ms] Scanning package files
[ +110 ms] Scanning asset files
[ +6 ms] Scanning for deleted files
[ +60 ms] Compiling dart to kernel with 415 updated files
[ +15 ms] c:\flutter_dev\flutter\bin\cache\dart-sdk\bin\dart c:\flutter_dev\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root c:\flutter_dev\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill --packages C:\flutter_tests\gps_test2.packages --filesystem-scheme org-dartlang-root
[+4036 ms] Updating files
[ +585 ms] DevFS: Sync finished
[ +41 ms] Synced 0.8MB.
[ +4 ms] _flutter.listViews: {}
[ +10 ms] Connected to _flutterView/0xa71b530c.
[ +1 ms] ?? To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
[ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8101/
[ ] For a more detailed help message, press "h". To quit, press "q".
[+54225 ms] I/flutter ( 2512): LOCATION CHANGED{altitude: 0.0, latitude: 51.5187983, longitude: -0.0142317, accuracy: 20.0}
[+10027 ms] I/flutter ( 2512): LOCATION CHANGED{altitude: 0.0, latitude: 51.5187983, longitude: -0.0142317, accuracy: 23.429000854492188}
[+9988 ms] I/flutter ( 2512): LOCATION CHANGED{altitude: 0.0, latitude: 51.5187983, longitude: -0.0142317, accuracy: 23.429000854492188}
[+3774 ms] ext.flutter.exit: {isolateId: isolates/848563893}
[ +96 ms] Service protocol connection closed.
[ +1 ms] Lost connection to device.
[ +13 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.gpstest2/cache/gps_test2HTVLUV/gps_test2/)
[ +1 ms] _deleteDevFS: {fsName: gps_test2}
Terminate batch job (Y/N)?

@Lyokone
Copy link
Owner

Lyokone commented May 29, 2018

I'm looking into it

@Lyokone
Copy link
Owner

Lyokone commented May 29, 2018

Try to target SDK 21 or more

@Lyokone Lyokone closed this as completed May 29, 2018
@JohnAherne
Copy link
Author

Thanks for the prompt reply.

Unfortunately using sdk21 and upwards does not do the trick.

Just to be clear I am running the example App with a few print statements sprinkled to see what is happening.

NEXUS 5 API 25 ANDROID 7.1 with GOOGLE PLAY SERVICES

This is running an emulator Nexus 5 api 25 android 7.1 with Google Play Services.

With TargetSDK 19, 21, 25 location1.2 works fine.

I used sdk 19 since I wanted to see how far back I could go. But by and large I want to be starting at KitKat 4.1 as the minimum at the moment.

However, with location1.3 the VM crashes with Permission denied for all of sdk19,21,25.

In the pubspec.yaml for the dependency I use:
location: "1.2.0" or location: "1.3.0" just to make sure I force the correct version.

It does not always crash. Occasionally, the screen will display but the app is not running. No callbacks run. And I can't send a GPS update from the emulator screen.

Sometimes on the emulator, it looks like initPlatformState has location being set to null.

SAMSUNG DEVICE

RUN on a samsung with Android 4.1.2. It works with location 1.2 but fails with location 1.3

Here is the error log from running on the Samsung

[ +232 ms] Syncing files to device 5205668463db3102...
[ +3 ms] DevFS: Starting sync from LocalDirectory: 'C:\flutter_tests\gps_test2'
[ ] Scanning project files
[ +2 ms] Scanning package files
[ +54 ms] Scanning asset files
[ +1 ms] Scanning for deleted files
[ +24 ms] Compiling dart to kernel with 415 updated files
[ +4 ms] c:\flutter_dev\flutter\bin\cache\dart-sdk\bin\dart c:\flutter_dev\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root c:\flutter_dev\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill --packages C:\flutter_tests\gps_test2.packages --filesystem-scheme org-dartlang-root
[+1054 ms] D/AndroidRuntime(11186): Shutting down VM
[ +3 ms] W/dalvikvm(11186): threadid=1: thread exiting with uncaught exception (group=0x40efe2a0)
[ +9 ms] E/AndroidRuntime(11186): FATAL EXCEPTION: main
[ ] E/AndroidRuntime(11186): java.lang.RuntimeException: Location permission denied
[ ] E/AndroidRuntime(11186): at com.lyokone.location.LocationPlugin$2.onLocationResult(LocationPlugin.java:141)
[ ] E/AndroidRuntime(11186): at com.google.android.gms.internal.location.zzau.notifyListener(Unknown Source)
[ ] E/AndroidRuntime(11186): at com.google.android.gms.common.api.internal.ListenerHolder.notifyListenerInternal(Unknown Source)
[ ] E/AndroidRuntime(11186): at com.google.android.gms.common.api.internal.ListenerHolder$zza.handleMessage(Unknown Source)
[ ] E/AndroidRuntime(11186): at android.os.Handler.dispatchMessage(Handler.java:99)
[ ] E/AndroidRuntime(11186): at android.os.Looper.loop(Looper.java:137)
[ ] E/AndroidRuntime(11186): at android.app.ActivityThread.main(ActivityThread.java:4867)
[ ] E/AndroidRuntime(11186): at java.lang.reflect.Method.invokeNative(Native Method)
[ ] E/AndroidRuntime(11186): at java.lang.reflect.Method.invoke(Method.java:511)
[ ] E/AndroidRuntime(11186): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
[ ] E/AndroidRuntime(11186): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
[ ] E/AndroidRuntime(11186): at dalvik.system.NativeStart.main(Native Method)
[ +94 ms] I/flutter (11186): GOT 2nd InitState
[ +42 ms] I/flutter (11186): LOCATION-1{accuracy: 16.760000228881836, altitude: 64.19999694824219, longitude: -0.1553803, latitude: 51.4649375}
[ +36 ms] I/flutter (11186): LOCATION CHANGED2{accuracy: 16.760000228881836, altitude: 64.19999694824219, longitude: -0.1553803, latitude: 51.4649375}
[ +64 ms] I/flutter (11186): LOCATION CHANGED{accuracy: 16.760000228881836, altitude: 64.19999694824219, longitude: -0.1553803, latitude: 51.4649375}
[+2085 ms] Updating files
[+5004 ms] DevFS: Sync finished
[ +4 ms] Synced 0.8MB.
[ +8 ms] _flutter.listViews: {}
[ +74 ms] Connected to _flutterView/0x5a7f

HUAWEI P20 DEVICE RUNNING Android 8.1.0 LOCATION 1.3

For good measure I thought I would try with a more recent phone just to bring everything more up to date.

Here the program runs and displays on the screen with a map. But the location onchanged callback does not fire.

And when the screen goes dark, the program produces a bunch of errors - see below.

[ +16 ms] Android Debug Bridge version 1.0.39
Version 0.0.1-4500957
Installed as C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb.EXE
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb start-server
[ +14 ms] Installing build\app\outputs\apk\app.apk...
[ ] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s BPN0218423001699 install -r build\app\outputs\apk\app.apk
[+3522 ms] Success
[ +5 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s BPN0218423001699 shell echo -n 93ae53de8c46589e57b4367414f12975cc16b76d > /data/local/tmp/sky.com.example.gpstest2.sha1
[ +60 ms] EML L09 startApp
[ +3 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s BPN0218423001699 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true com.example.gpstest2/com.example.gpstest2.MainActivity
[ +147 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.gpstest2/.MainActivity (has extras) }
[ +1 ms] Waiting for observatory port to be available...
[ +491 ms] I/FlutterActivityDelegate( 6406): onResume setting current activity to this
[ +94 ms] Observatory URL on device: http://127.0.0.1:36030/
[ +20 ms] C:\Users\john2\AppData\Local\Android\sdk\platform-tools\adb -s BPN0218423001699 forward tcp:8101 tcp:36030
[ +29 ms] Forwarded host port 8101 to device port 36030 for Observatory
[ +5 ms] Connecting to service protocol: http://127.0.0.1:8101/
[ +262 ms] Successfully connected to service protocol: http://127.0.0.1:8101/
[ +13 ms] getVM: {}
[ +21 ms] getIsolate: {isolateId: isolates/251001233}
[ +2 ms] _flutter.listViews: {}
[ +287 ms] DevFS: Creating new filesystem on the device (null)
[ ] _createDevFS: {fsName: gps_test2}
[ +2 ms] W/Activity( 6406): Can reqeust only one set of permissions at a time
[ +33 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.gpstest2/cache/gps_test2GLZBUB/gps_test2/)
[ +3 ms] Updating assets
[ +207 ms] Syncing files to device EML L09...
[ +3 ms] DevFS: Starting sync from LocalDirectory: 'C:\flutter_tests\gps_test2'
[ ] Scanning project files
[ +2 ms] Scanning package files
[ +52 ms] Scanning asset files
[ +1 ms] Scanning for deleted files
[ +24 ms] Compiling dart to kernel with 415 updated files
[ +3 ms] c:\flutter_dev\flutter\bin\cache\dart-sdk\bin\dart c:\flutter_dev\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root c:\flutter_dev\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill --packages C:\flutter_tests\gps_test2.packages --filesystem-scheme org-dartlang-root
[+1029 ms] Updating files
[ +484 ms] DevFS: Sync finished
[ +1 ms] Synced 0.8MB.
[ +5 ms] _flutter.listViews: {}
[ +5 ms] Connected to _flutterView/0x7408726f18.
[ +1 ms] 🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
[ ] An Observatory debugger and profiler on EML L09 is available at: http://127.0.0.1:8101/
[ ] For a more detailed help message, press "h". To quit, press "q".
[ +493 ms] W/InputMethodManager( 6406): startInputReason = 1
[ +42 ms] I/FlutterActivityDelegate( 6406): onResume setting current activity to this
[ +8 ms] I/flutter ( 6406): GOT 2nd InitState
[ +4 ms] I/flutter ( 6406): LOCATION-1{altitude: 0.0, latitude: 51.4649296, accuracy: 11.114999771118164, longitude: -0.1553698}
[ +1 ms] I/flutter ( 6406): LOCATION CHANGED2{altitude: 0.0, latitude: 51.4649296, accuracy: 11.114999771118164, longitude: -0.1553698}
[+83301 ms] W/InputMethodManager( 6406): startInputReason = 8
[ +229 ms] V/ActivityThread( 6406): Finishing stop of ActivityRecord{f37b5c6 token=android.os.BinderProxy@23312a2 {com.example.gpstest2/com.example.gpstest2.MainActivity}}
[ +26 ms] W/libEGL ( 6406): EGLNativeWindowType 0x73f7d24010 disconnect failed
[+1343 ms] W/InputMethodManager( 6406): startInputReason = 7
[ +21 ms] D/mali_winsys( 6406): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
[ +2 ms] W/libEGL ( 6406): load: so=libEGL_vr.so
[ ] W/libEGL ( 6406): dlopen failed: library "libEGL_vr.so" not found
[ ] W/libEGL ( 6406): load: so=libEGL_vr.so
[ ] W/libEGL ( 6406): dlopen failed: library "libEGL_vr.so" not found
[ ] W/libEGL ( 6406): load: so=libEGL_vr.so
[ ] W/libEGL ( 6406): dlopen failed: library "libEGL_vr.so" not found
[ ] W/libEGL ( 6406): load: so=libEGL_vr.so
[ ] W/libEGL ( 6406): dlopen failed: library "libEGL_vr.so" not found
[ +14 ms] I/FlutterActivityDelegate( 6406): onResume setting current activity to this
[+29958 ms] W/InputMethodManager( 6406): startInputReason = 8
[ +251 ms] V/ActivityThread( 6406): Finishing stop of ActivityRecord{f37b5c6 token=android.os.BinderProxy@23312a2 {com.example.gpstest2/com.example.gpstest2.MainActivity}}
[ +18 ms] W/libEGL ( 6406): EGLNativeWindowType 0x73f3265010 disconnect failed
[+4796 ms] W/libEGL ( 6406): EGLNativeWindowType 0x73f69ff010 disconnect failed
[ +24 ms] V/ActivityThread( 6406): Handle window ActivityRecord{f37b5c6 token=android.os.BinderProxy@23312a2 {com.example.gpstest2/com.example.gpstest2.MainActivity}} visibility: false
[+5485 ms] I/FlutterActivityDelegate( 6406): onResume setting current activity to this
[ +17 ms] D/mali_winsys( 6406): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
[ +5 ms] D/mali_winsys( 6406): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
[ +2 ms] W/libEGL ( 6406): load: so=libEGL_vr.so
[ ] W/libEGL ( 6406): dlopen failed: library "libEGL_vr.so" not found
[ +3 ms] I/chatty ( 6406): uid=10142(com.example.gpstest2) identical 2 lines
[ +2 ms] W/libEGL ( 6406): load: so=libEGL_vr.so
[ ] W/libEGL ( 6406): dlopen failed: library "libEGL_vr.so" not found
[ ] E/BpSurfaceComposerClient( 6406): Failed to transact (-1)
[ ] E/BpSurfaceComposerClient( 6406): Failed to transact (-1)
[ +39 ms] W/InputMethodManager( 6406): startInputReason = 1
[+20962 ms] ext.flutter.exit: {isolateId: isolates/251001233}
[ +103 ms] Application finished.
Terminate batch job (Y/N)?
^C
C:\flutter_tests\gps_test2>

HUAWEI P20 DEVICE RUNNING Android 8.1.0 LOCATION 1.2

Here the program runs and displays on the screen with a map. But the location onchanged callback does not fire.

[ +219 ms] Syncing files to device EML L09...
[ +3 ms] DevFS: Starting sync from LocalDirectory: 'C:\flutter_tests\gps_test2'
[ ] Scanning project files
[ +2 ms] Scanning package files
[ +51 ms] Scanning asset files
[ +1 ms] Scanning for deleted files
[ +24 ms] Compiling dart to kernel with 415 updated files
[ +3 ms] c:\flutter_dev\flutter\bin\cache\dart-sdk\bin\dart c:\flutter_dev\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root c:\flutter_dev\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill --packages C:\flutter_tests\gps_test2.packages --filesystem-scheme org-dartlang-root
[+1305 ms] I/FlutterActivityDelegate( 7036): onResume setting current activity to this
[ +3 ms] W/InputMethodManager( 7036): startInputReason = 1
[ +2 ms] I/flutter ( 7036): GOT 2nd InitState
[ +2 ms] I/flutter ( 7036): LOCATION-1{altitude: 0.0, latitude: 51.4618698, accuracy: 400.0, longitude: -0.154828}
[ +2 ms] I/flutter ( 7036): LOCATION CHANGED2{altitude: 0.0, latitude: 51.4618698, accuracy: 400.0, longitude: -0.154828}
[+1980 ms] Updating files
[ +491 ms] DevFS: Sync finished
[ +1 ms] Synced 0.8MB.
[ +2 ms] _flutter.listViews: {}
[ +13 ms] Connected to _flutterView/0x7408726f18.
[ +1 ms] 🔥 To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
[ ] An Observatory debugger and profiler on EML L09 is available at: http://127.0.0.1:8100/
[ ] For a more detailed help message, press "h". To quit, press "q".
[+39476 ms] Initializing hot reload...
[ +17 ms] Refreshing active FlutterViews before reloading.
[ ] _flutter.listViews: {}
[ +327 ms] Syncing files to device EML L09...
[ ] DevFS: Starting sync from LocalDirectory: 'C:\flutter_tests\gps_test2'
[ ] Scanning project files
[ ] Scanning package files
[ +20 ms] Scanning asset files
[ ] Scanning for deleted files
[ +17 ms] Compiling dart to kernel with 0 updated files
[ +16 ms] Updating files
[ +27 ms] DevFS: Sync finished
[ ] Synced 0.0MB.
[ +2 ms] _flutter.setAssetBundlePath: {viewId: _flutterView/0x7408726f18, assetDirectory: /data/user/0/com.example.gpstest2/cache/gps_test2RGGCIG/gps_test2/build/flutter_assets}
[ +17 ms] _reloadSources: {pause: false, rootLibUri: /data/user/0/com.example.gpstest2/cache/gps_test2RGGCIG/gps_test2/lib/main.dart.dill, packagesUri: /data/user/0/com.example.gpstest2/cache/gps_test2RGGCIG/gps_test2/.packages, isolateId: isolates/985421718}
[ +17 ms] reloaded 0 of 390 libraries
[ ] Sending reload events to EML L09
[ ] Sending reload event to "main.dart$main-985421718"
[ +1 ms] getIsolate: {isolateId: isolates/985421718}
[ +52 ms] _flutter.listViews: {}
[ +12 ms] Evicting dirty assets
[ +3 ms] ext.flutter.evict: {value: AssetManifest.json, isolateId: isolates/985421718}
[ +27 ms] ext.flutter.evict: {value: FontManifest.json, isolateId: isolates/985421718}
[ +16 ms] ext.flutter.evict: {value: LICENSE, isolateId: isolates/985421718}
[ +13 ms] Reassembling application
[ +2 ms] ext.flutter.reassemble: {isolateId: isolates/985421718}
[ +123 ms] ext.ui.window.scheduleFrame: {isolateId: isolates/985421718}
[ +56 ms] Hot reload performed in 701ms.
[ +1 ms] Reloaded 0 of 390 libraries in 774ms.
[+11266 ms] I/zygote64( 7036): Do partial code cache collection, code=27KB, data=29KB
[ +1 ms] I/zygote64( 7036): After code cache collection, code=27KB, data=29KB
[ ] I/zygote64( 7036): Increasing code cache capacity to 128KB
[+32032 ms] W/InputMethodManager( 7036): startInputReason = 8
[ +237 ms] V/ActivityThread( 7036): Finishing stop of ActivityRecord{f37b5c6 token=android.os.BinderProxy@23312a2 {com.example.gpstest2/com.example.gpstest2.MainActivity}}
[ +23 ms] W/libEGL ( 7036): EGLNativeWindowType 0x73f68b3010 disconnect failed
[+4801 ms] W/libEGL ( 7036): EGLNativeWindowType 0x73f68b1010 disconnect failed
[ +19 ms] V/ActivityThread( 7036): Handle window ActivityRecord{f37b5c6 token=android.os.BinderProxy@23312a2 {com.example.gpstest2/com.example.gpstest2.MainActivity}} visibility: false
[+5559 ms] I/FlutterActivityDelegate( 7036): onResume setting current activity to this
[ +17 ms] D/mali_winsys( 7036): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
[ +5 ms] D/mali_winsys( 7036): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
[ +2 ms] W/libEGL ( 7036): load: so=libEGL_vr.so
[ ] W/libEGL ( 7036): dlopen failed: library "libEGL_vr.so" not found
[ +3 ms] I/chatty ( 7036): uid=10143(com.example.gpstest2) identical 2 lines
[ ] W/libEGL ( 7036): load: so=libEGL_vr.so
[ ] W/libEGL ( 7036): dlopen failed: library "libEGL_vr.so" not found
[ ] E/BpSurfaceComposerClient( 7036): Failed to transact (-1)
[ ] E/BpSurfaceComposerClient( 7036): Failed to transact (-1)
[ +62 ms] W/InputMethodManager( 7036): startInputReason = 1
[+22352 ms] ext.flutter.exit: {isolateId: isolates/985421718}
[ +105 ms] Application finished.
Terminate batch job (Y/N)?

Here is the code I am using for main.dart in case it is useful.

import 'dart:async';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:location/location.dart';

void main() {
  runApp(new MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Map<String, double> _currentLocation;
  StreamSubscription<Map<String, double>> _locationSubscription;

  Location _location = new Location();
  String error;

  bool currentWidget = true;

  Image image1;

  @override
  void initState() {
    super.initState();

    initPlatformState();

    _locationSubscription =
        _location.onLocationChanged.listen((Map<String,double> result) {
          setState(() {
            _currentLocation = result;
          });
          print('LOCATION CHANGED' + result.toString());
        });
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  initPlatformState() async {
    Map<String, double> location;
    // Platform messages may fail, so we use a try/catch PlatformException.

    try {
      location = await _location.getLocation;
      error = null;
    } on PlatformException catch (e) {
      if (e.code == 'PERMISSION_DENIED') {
        error = 'Permission denied';
      } else if (e.code == 'PERMISSION_DENIED_NEVER_ASK') {
        error = 'Permission denied - please ask the user to enable it from the app settings';
      }

      location = null;
    }

    // If the widget was removed from the tree while the asynchronous platform
    // message was in flight, we want to discard the reply rather than calling
    // setState to update our non-existent appearance.
    if (!mounted) return;
    print('GOT 2nd InitState');
    print('LOCATION-1' + location.toString());
    setState(() {
      _currentLocation = location;
    });
              print('LOCATION CHANGED2' + location.toString());

  }

  @override
  Widget build(BuildContext context) {
    List<Widget> widgets;

    if (_currentLocation == null) {
      widgets = new List();
    } else {
      widgets = [
        new Image.network(
            "https://maps.googleapis.com/maps/api/staticmap?center=${_currentLocation["latitude"]},${_currentLocation["longitude"]}&zoom=18&size=640x600&key=XXXXXXX")
      ];
    }

    widgets.add(new Center(
        child: new Text(_currentLocation != null
            ? '$_currentLocation\n'
            : 'Error: $error\n')));

    return new MaterialApp(
        home: new Scaffold(
            appBar: new AppBar(
              title: new Text('Plugin example app'),
            ),
            body: new Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              mainAxisSize: MainAxisSize.min,
              children: widgets,
            )));
  }
}

@JohnAherne
Copy link
Author

Just noticed location 1.3 is now 1.3.2.

On the Samsung using 1.3.2 and running flutter run -v, the app crashes but flutter run is still running

@JohnAherne
Copy link
Author

Did some more testing on the emulator with location 1.3.2 and sdk 25

If I restart the emulator from scratch, I get the permissions request come up. Say Allow and the program displays a screen with null for the lat/lon. And is stuck and unresponsive.

You can see the nulls in the below log

It also warns about Can reqeust only one set of permissions at a time

Hope this is useful information

+2671 ms] DevFS: Creating new filesystem on the device (null)
[ +1 ms] _createDevFS: {fsName: gps_test2}
[ +73 ms] W/Activity( 6210): Can reqeust only one set of permissions at a time
[ +106 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.gpstest2/cache/gps_test2OIMHNN/gps_test2/)
[ +2 ms] Updating assets
[ +981 ms] D/ ( 6210): HostConnection::get() New Host Connection established 0xa1ea1700, tid 6242
[ +12 ms] D/EGL_emulation( 6210): eglMakeCurrent: 0x9b499b00: ver 3 0 (tinfo 0xa1e83230)
[ +583 ms] Syncing files to device Android SDK built for x86...
[ +3 ms] DevFS: Starting sync from LocalDirectory: 'C:\flutter_tests\gps_test2'
[ ] Scanning project files
[ +3 ms] Scanning package files
[ +263 ms] Scanning asset files
[ +1 ms] Scanning for deleted files
[ +32 ms] Compiling dart to kernel with 415 updated files
[ +4 ms] c:\flutter_dev\flutter\bin\cache\dart-sdk\bin\dart c:\flutter_dev\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root c:\flutter_dev\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build\app.dill --packages C:\flutter_tests\gps_test2.packages --filesystem-scheme org-dartlang-root
[+1912 ms] Updating files
[+1120 ms] DevFS: Sync finished
[ +230 ms] Synced 0.8MB.
[ +2 ms] _flutter.listViews: {}
[ +58 ms] Connected to _flutterView/0xa71b530c.
[ +1 ms] ?? To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
[ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:8100/
[ ] For a more detailed help message, press "h". To quit, press "q".
[+5013 ms] I/FlutterActivityDelegate( 6210): onResume setting current activity to this
[ +540 ms] I/flutter ( 6210): GOT 2nd InitState
[ +1 ms] I/flutter ( 6210): LOCATION-1null
[ +31 ms] I/flutter ( 6210): LOCATION CHANGED2null
[+36422 ms] ext.flutter.exit: {isolateId: isolates/882313552}
[ +88 ms] Service protocol connection closed.
[ +1 ms] Lost connection to device.
[ +2 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.example.gpstest2/cache/gps_test2OIMHNN/gps_test2/)
[ ] _deleteDevFS: {fsName: gps_test2}
Terminate batch job (Y/N)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants