flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.24k stars 27.5k forks source link

[google_maps_flutter] CameraUpdate.newLatLngBounds moves map camera to North Pacific Region. #62671

Open codiyer opened 4 years ago

codiyer commented 4 years ago

Steps to Reproduce

Just run this file.

main.dart

import 'package:flutter/material.dart';
import "package:flutter/cupertino.dart";
import 'package:google_maps_flutter/google_maps_flutter.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: TrialMaps(),
    );
  }
}

class TrialMaps extends StatefulWidget {
  @override
  _TrialMapsState createState() => _TrialMapsState();
}

class _TrialMapsState extends State<TrialMaps> {
  LatLng firstLocation = LatLng(19.230036, 72.98368010000002);
  LatLng secondLocation = LatLng(19.2057856, 73.10183510000002);
  GoogleMapController _mapController;

  @override
  Widget build(BuildContext context) {
    return GoogleMap(
      initialCameraPosition: CameraPosition(
        target: firstLocation,
        zoom: 10,
      ),
      markers: <Marker>{
        Marker(markerId: MarkerId("firstLocation"), position: firstLocation),
        Marker(markerId: MarkerId("secondLocation"), position: secondLocation)
      },
      mapToolbarEnabled: false,
      onMapCreated: (GoogleMapController controller) {
        setState(() {
          _mapController = controller;
        });
        updateCamera();
      },
    );
  }

  void updateCamera() async {
    LatLngBounds bounds = LatLngBounds(
      southwest: secondLocation,
      northeast: firstLocation,
    );
    print(bounds);
    await _mapController.animateCamera(
      CameraUpdate.newLatLngBounds(bounds, 50),
    );
    await Future.delayed(
      Duration(seconds: 10),
      () async => print(
        await _mapController.getVisibleRegion(),
      ),
    );
  }
}

Added this line in pubspec.yaml

google_maps_flutter: 0.5.28+1

Expected results:

LatLngBounds(LatLng(19.2057856, 73.10183510000002), LatLng(19.230036, 72.98368010000002))

Actual results:

LatLngBounds(LatLng(-50.54430991375401, -143.11797212809324), LatLng(69.48237761903152, -70.79650562256575))
Logs ``` [ +23 ms] executing: [/Users/sabrish/Documents/tools/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +44 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] b041144f833e05cf463b8887fa12efdec9493488 [ ] executing: [/Users/sabrish/Documents/tools/flutter/] git tag --contains HEAD [ +269 ms] Exit code 0 from: git tag --contains HEAD [ +1 ms] 1.17.3 1.17.4 1.17.5 [ +10 ms] executing: [/Users/sabrish/Documents/tools/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [/Users/sabrish/Documents/tools/flutter/] git ls-remote --get-url origin [ +9 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +73 ms] executing: [/Users/sabrish/Documents/tools/flutter/] git rev-parse --abbrev-ref HEAD [ +12 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +6 ms] executing: sw_vers -productName [ +18 ms] Exit code 0 from: sw_vers -productName [ ] Mac OS X [ ] executing: sw_vers -productVersion [ +13 ms] Exit code 0 from: sw_vers -productVersion [ ] 10.14.6 [ ] executing: sw_vers -buildVersion [ +16 ms] Exit code 0 from: sw_vers -buildVersion [ ] 18G6020 [ +35 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +20 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb devices -l [ +6 ms] executing: /usr/bin/xcode-select --print-path [ +13 ms] Exit code 0 from: /usr/bin/xcode-select --print-path [ ] /Applications/Xcode.app/Contents/Developer [ +1 ms] executing: /usr/bin/xcodebuild -version [ +245 ms] Exit code 0 from: /usr/bin/xcodebuild -version [ +1 ms] Xcode 11.3 Build version 11C29 [ +2 ms] executing: xcrun --find xcdevice [ +12 ms] Exit code 0 from: xcrun --find xcdevice [ ] /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice [ ] executing: xcrun xcdevice list --timeout 2 [ +5 ms] /usr/bin/xcrun simctl list --json devices [ ] executing: /usr/bin/xcrun simctl list --json devices [ +43 ms] List of devices attached 198a1db6 device usb:336592896X product:OnePlus7 model:GM1901 device:OnePlus7 transport_id:1 [ +88 ms] { "devices" : { "com.apple.CoreSimulator.SimRuntime.watchOS-5-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 38mm", "udid" : "1A691F13-731D-42D8-81BA-FDB9811755D4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 42mm", "udid" : "70253697-EF89-411E-B6DE-B9F64AA82007", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 38mm", "udid" : "56CC325A-63FF-41FA-9EDF-D15D64C41E03", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 42mm", "udid" : "57491FDB-6AB1-4121-AEEA-9A99D13937D9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 40mm", "udid" : "C54C711F-BDCF-4FA0-B6DC-6F485C178207", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 44mm", "udid" : "300F9B83-8F6A-46B1-86E5-6DB97C9A8331", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.tvOS-12-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV", "udid" : "D6B5F721-12ED-4F6F-8A26-E104766174B4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K (at 1080p)", "udid" : "591C7460-2737-4DAD-92AD-DAD2FAB2F99C", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K", "udid" : "91557F17-2A80-4CF8-9E20-8DA95A9F2423", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.tvOS-12-2" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV", "udid" : "24C8F91E-E635-4F94-A499-B9EB0A428087", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K (at 1080p)", "udid" : "B5D0E888-8422-4775-8328-F10CF0DE6BB1", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K", "udid" : "62461BC3-0C16-487C-A92D-8EE35EB5A096", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.iOS-12-2" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 5s", "udid" : "AAD01130-0D2F-456B-921F-C88CDB26EA2B", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6 Plus", "udid" : "0725313E-32B3-4B7A-9991-8A6155C8B8F0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6", "udid" : "0E044513-F5F4-46CD-B806-5BD7A84E78E4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s", "udid" : "3A22514F-B574-4CE3-9CF6-396FE3E6B281", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s Plus", "udid" : "A3B649BD-6C07-466A-B8C2-8B4D1B90B4E7", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone SE", "udid" : "E431E7E0-7C23-4747-AAE8-94BA2FC7F2A2", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7", "udid" : "68E83E29-597E-4575-A240-0BA8AA2AD5B4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7 Plus", "udid" : "B736E2F1-B55C-47D2-BE92-83C493F694F8", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8", "udid" : "75D6CEC4-B8FD-4872-9DF4-915069CFB249", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8 Plus", "udid" : "D4A63BE5-4D2A-4D3F-BB59-D237570EE259", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone X", "udid" : "17D72B5C-42CD-468C-9FF2-4A24566DDBA9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone Xs", "udid" : "5AE679E3-FC38-43F1-A6BC-3D83E181C24A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone Xs Max", "udid" : "836F81CA-D9C5-4EA3-A195-5D3DFC7A1EFF", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone Xʀ", "udid" : "C4A3B5A2-A3B8-4431-9FA8-992F416F2BD0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air", "udid" : "AE717F36-6E08-4394-9087-7CC622E93FC5", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air 2", "udid" : "B18B1A38-30DB-43DD-ABAD-A8AE13493A21", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (9.7-inch)", "udid" : "8F42E6AD-EDF7-4B0F-A976-62864FFEBA07", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch)", "udid" : "B7E0116B-74AC-4EA4-8BE3-BBABAF1365C6", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (5th generation)", "udid" : "F3A94DB0-E612-4500-B51F-AFDAD597A2F0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (2nd generation)", "udid" : "F4A48EDC-5991-47EE-981A-888B1EC4F9C5", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (10.5-inch)", "udid" : "17388B61-C3CE-4ABD-B328-32C5A4404B0E", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (6th generation)", "udid" : "C4378532-A69D-4240-95DC-A5DD477DD4D0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (11-inch)", "udid" : "B2C61F2D-CBFE-42E0-B596-5FD30E6F4506", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (3rd generation)", "udid" : "46F53C07-A66E-4768-9314-B27BAC1D335C", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air (3rd generation)", "udid" : "408612CA-5E0E-4ABF-9370-5BD807FCB911", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.iOS-13-3" : [ { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8", "udid" : "25D68A9F-987E-427A-8607-A9DCD3966D16" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8 Plus", "udid" : "CD6BFE62-CDC4-4874-9121-B4215C1CE965" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11", "udid" : "3CEE898F-D357-4B56-B7D9-5335E4650472" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11 Pro", "udid" : "B04D37E4-C7F4-4988-93BF-AB3BD9D1F6D4" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11 Pro Max", "udid" : "1BBB7C34-24B5-498B-A3AA-E27428708CCF" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (9.7-inch)", "udid" : "D85E95B9-C35D-464F-B84F-6CD4663C860D" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad (7th generation)", "udid" : "9890757D-D508-4BCE-A309-3833A410BB99" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (11-inch)", "udid" : "676594F2-8841-4654-BD89-0F5602A7DC29" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (12.9-inch) (3rd generation)", "udid" : "EC46E0BF-36A2-4915-9DBE-9648541EB6D2" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Air (3rd generation)", "udid" : "5753F39F-BBAD-4E9A-BD0D-838985800733" } ], "com.apple.CoreSimulator.SimRuntime.watchOS-5-2" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 38mm", "udid" : "3507A4C3-023E-4523-A292-183CD5362A10", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 42mm", "udid" : "97A59117-04DC-42A2-A43B-4551E391415F", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 38mm", "udid" : "CB4E13C1-45CD-45F4-8ED7-EDAFEA3471B5", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 42mm", "udid" : "8B80FDDC-14D8-47A2-80E2-C12E70E08FD9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 40mm", "udid" : "3542274B-B7A9-4DFC-A834-D48A3D980207", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 44mm", "udid" : "019F8AB5-7332-41F2-B648-66F14ED03637", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.watchOS-6-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 40mm", "udid" : "F7B9EDD1-E614-464D-AC90-EEF79715FDB6", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 44mm", "udid" : "EB6EE3BA-A864-4E18-9F3D-0648404FE16A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 5 - 40mm", "udid" : "3558F4D3-B10F-46EF-A85C-A4005192FBE3", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 5 - 44mm", "udid" : "74A0CFC8-FB05-4021-AA45-1F4B93D96491", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.iOS-12-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 5s", "udid" : "0FD59A2C-62E4-4924-A425-5E712E5BC2B9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6 Plus", "udid" : "54C68982-4BE7-4DF6-B7D0-5E47AB85E2AB", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6", "udid" : "722BD834-96E7-483B-B9E4-6FC80F002C8A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s", "udid" : "2C6ADD70-93D2-48CB-AF00-140718636734", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s Plus", "udid" : "F819E969-398F-4257-B44B-E4DD06372D41", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone SE", "udid" : "1C34B443-ED54-4288-A180-233AD53A9153", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7", "udid" : "144CDACB-197E-45CA-BCC7-D84C10C62AD4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7 Plus", "udid" : "501CEE06-5F37-4A08-895B-0C5E44794AA8", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8", "udid" : "9060D3F9-FE82-404E-8AF2-177CB3CCD4F9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8 Plus", "udid" : "0F88A27F-51C9-4D02-9747-23D4930EE6F1", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone X", "udid" : "9B317650-FCD1-4C44-843B-920DD9CBA790", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone XS", "udid" : "6F875BEA-1679-4C5E-BDA8-BFAD8C980D32", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone XS Max", "udid" : "9D384FC3-47B6-4402-B6C6-5E384E4C79B1", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone XR", "udid" : "A12869EF-2990-4F7B-BBA4-21DDC62D7525", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air", "udid" : "1EB3F984-7BC3-4D35-8B59-4A0B3AA8DBC2", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air 2", "udid" : "0F2EDF23-F2D6-4E45-B090-E33DDEA1190A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (9.7-inch)", "udid" : "1EE05F71-985B-457A-A757-D83F84F27A41", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch)", "udid" : "67FEFC2E-C1D4-4F12-AAE8-C78BCA3E3FE6", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (5th generation)", "udid" : "3EDA426E-F174-45A9-88AB-C47D9AFB1296", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (2nd generation)", "udid" : "42FB1C6C-5426-465C-94C2-034D6DDA9024", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (10.5-inch)", "udid" : "7766DDC8-D0FA-43EC-9FBB-D198780CC634", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (6th generation)", "udid" : "DCF93923-D42D-4CAA-ACEA-53B158BDBA7C", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (11-inch)", "udid" : "05CF8B9C-C245-48F3-872F-3AD79E583079", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (3rd generation)", "udid" : "B97627A8-C753-41EE-8441-23465D022C79", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.tvOS-13-3" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV", "udid" : "0576C4DF-979C-49A1-8547-2DF41DD546F3", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K (at 1080p)", "udid" : "0E088E93-A2BB-4C8A-A975-7451E026F3E9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K", "udid" : "7A036BCB-14A8-4F27-88F6-07BFAB33D8F9", "availabilityError" : "runtime profile not found" } ] } } [+2504 ms] [ { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad6,4", "identifier" : "D85E95B9-C35D-464F-B84F-6CD4663C860D", "architecture" : "x86_64", "modelName" : "iPad Pro (9.7-inch)", "name" : "iPad Pro (9.7-inch)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,5", "identifier" : "EC46E0BF-36A2-4915-9DBE-9648541EB6D2", "architecture" : "x86_64", "modelName" : "iPad Pro (12.9-inch) (3rd generation)", "name" : "iPad Pro (12.9-inch) (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,3", "identifier" : "B04D37E4-C7F4-4988-93BF-AB3BD9D1F6D4", "architecture" : "x86_64", "modelName" : "iPhone 11 Pro", "name" : "iPhone 11 Pro" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,1", "identifier" : "3CEE898F-D357-4B56-B7D9-5335E4650472", "architecture" : "x86_64", "modelName" : "iPhone 11", "name" : "iPhone 11" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad7,12", "identifier" : "9890757D-D508-4BCE-A309-3833A410BB99", "architecture" : "x86_64", "modelName" : "iPad (7th generation)", "name" : "iPad (7th generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,5", "identifier" : "1BBB7C34-24B5-498B-A3AA-E27428708CCF", "architecture" : "x86_64", "modelName" : "iPhone 11 Pro Max", "name" : "iPhone 11 Pro Max" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,4", "identifier" : "25D68A9F-987E-427A-8607-A9DCD3966D16", "architecture" : "x86_64", "modelName" : "iPhone 8", "name" : "iPhone 8" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,1", "identifier" : "676594F2-8841-4654-BD89-0F5602A7DC29", "architecture" : "x86_64", "modelName" : "iPad Pro (11-inch)", "name" : "iPad Pro (11-inch)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad11,3", "identifier" : "5753F39F-BBAD-4E9A-BD0D-838985800733", "architecture" : "x86_64", "modelName" : "iPad Air (3rd generation)", "name" : "iPad Air (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,5", "identifier" : "CD6BFE62-CDC4-4874-9121-B4215C1CE965", "architecture" : "x86_64", "modelName" : "iPhone 8 Plus", "name" : "iPhone 8 Plus" } ] [ +5 ms] /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 shell getprop [ +85 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +77 ms] Found plugin flutter_plugin_android_lifecycle at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.8/ [ +9 ms] Found plugin google_maps_flutter at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.28+1/ [ +79 ms] Found plugin flutter_plugin_android_lifecycle at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.8/ [ +9 ms] Found plugin google_maps_flutter at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.28+1/ [ +96 ms] Generating /Users/sabrish/Desktop/flutter_google_maps_bug/bug/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +23 ms] ro.hardware = qcom [ +55 ms] Launching lib/main.dart on GM1901 in debug mode... [ +6 ms] /Users/sabrish/Documents/tools/flutter/bin/cache/dart-sdk/bin/dart /Users/sabrish/Documents/tools/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/sabrish/Documents/tools/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true -Dflutter.inspector.structuredErrors=true --output-dill /var/folders/wh/f0qzxcds0qz5_wbbx3wr91vr0000gn/T/flutter_tool.bpvjQ4/app.dill --packages /Users/sabrish/Desktop/flutter_google_maps_bug/bug/.packages -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation [ +10 ms] executing: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/flutter_google_maps_bug/bug/build/app/outputs/apk/app.apk AndroidManifest.xml [ +8 ms] Exit code 0 from: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/flutter_google_maps_bug/bug/build/app/outputs/apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.example.bug" (Raw: "com.example.bug") A: platformBuildVersionCode=(type 0x10)0x1c A: platformBuildVersionName=(type 0x10)0x9 E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE") E: uses-feature (line=18) A: android:glEsVersion(0x01010281)=(type 0x11)0x20000 A: android:required(0x0101028e)=(type 0x12)0xffffffff E: application (line=28) A: android:label(0x01010001)="bug" (Raw: "bug") A: android:icon(0x01010002)=@0x7f080000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: activity (line=34) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=48) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=58) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040015 E: intent-filter (line=62) E: action (line=63) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=65) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=72) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: uses-library (line=76) A: android:name(0x01010003)="org.apache.http.legacy" (Raw: "org.apache.http.legacy") A: android:required(0x0101028e)=(type 0x12)0x0 E: activity (line=80) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity") A: android:exported(0x01010010)=(type 0x12)0x0 E: meta-data (line=85) A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version") A: android:value(0x01010024)=@0x7f060000 [ +9 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 shell -x logcat -v time -t 1 [ +191 ms] Exit code 0 from: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 shell -x logcat -v time -t 1 [ ] --------- beginning of system 07-31 20:41:26.827 I/RampAnimator( 1509): mRate:5 mDelta:-84 mCurrentValue:95 [ +19 ms] <- compile package:bug/main.dart [ +16 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb version [ +12 ms] Android Debug Bridge version 1.0.41 Version 30.0.3-6597393 Installed as /Users/sabrish/Library/Android/sdk/platform-tools/adb [ +7 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb start-server [ +14 ms] Building APK Running Gradle task 'assembleDebug'... [ +44 ms] gradle.properties already sets `android.enableR8` [ +6 ms] Using gradle from /Users/sabrish/Desktop/flutter_google_maps_bug/bug/android/gradlew. [ +4 ms] /Users/sabrish/Desktop/flutter_google_maps_bug/bug/android/gradlew mode: 33261 rwxr-xr-x. [+1302 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ +15 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ ] {"CFBundleName":"Android Studio","JVMOptions":{"MainClass":"com.intellij.idea.Main","ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","Properties":{"idea.home.path":"$APP_PACKAGE\/Contents","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.paths.selector":"AndroidStudio4.0"},"WorkingDirectory":"$APP_PACKAGE\/Contents\/bin"},"NSDesktopFolderUsageDescription":"An application in Android Studio requests access to the user's Desktop folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-193.6911.18.40.6514223","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in Android Studio requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeExtensions":["ipr"],"CFBundleTypeName":"Android Studio Project File","CFBundleTypeIconFile":"studio.icns","CFBundleTypeRole":"Editor"},{"CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"LSTypeIsPackage":false,"CFBundleTypeName":"All documents","CFBundleTypeRole":"Editor"}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"4.0","NSMicrophoneUsageDescription":"An application in Android Studio requests access to the device's microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in Android Studio requests access to the user's location information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"],"CFBundleTypeRole":"Editor"}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescription":"An application in Android Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests access to the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network volume.","CFBundleGetInfoString":"Android Studio 4.0, build AI-193.6911.18.40.6514223. Copyright JetBrains s.r.o., (c) 2000-2020","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access to files on a removable volume."} [ +5 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ +89 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ ] openjdk version "1.8.0_242-release" OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode) [ +2 ms] executing: [/Users/sabrish/Desktop/flutter_google_maps_bug/bug/android/] /Users/sabrish/Desktop/flutter_google_maps_bug/bug/android/gradlew -q -Ptarget-platform=android-arm64 -Ptarget=/Users/sabrish/Desktop/flutter_google_maps_bug/bug/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Pdart-defines=flutter.inspector.structuredErrors=true assembleDebug [+7681 ms] calculateSha: LocalDirectory: '/Users/sabrish/Desktop/flutter_google_maps_bug/bug/build/app/outputs/apk'/app.apk [ +83 ms] calculateSha: reading file took 82us [ +561 ms] calculateSha: computing sha took 560us [ +2 ms] ✓ Built build/app/outputs/apk/debug/app-debug.apk. [ +3 ms] executing: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/flutter_google_maps_bug/bug/build/app/outputs/apk/app.apk AndroidManifest.xml [ +10 ms] Exit code 0 from: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/flutter_google_maps_bug/bug/build/app/outputs/apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.example.bug" (Raw: "com.example.bug") A: platformBuildVersionCode=(type 0x10)0x1c A: platformBuildVersionName=(type 0x10)0x9 E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE") E: uses-feature (line=18) A: android:glEsVersion(0x01010281)=(type 0x11)0x20000 A: android:required(0x0101028e)=(type 0x12)0xffffffff E: application (line=28) A: android:label(0x01010001)="bug" (Raw: "bug") A: android:icon(0x01010002)=@0x7f080000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: meta-data (line=34) A: android:name(0x01010003)="com.google.android.geo.API_KEY" (Raw: "com.google.android.geo.API_KEY") A: android:value(0x01010024)="" (Raw: "") E: activity (line=38) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=52) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=62) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040015 E: intent-filter (line=66) E: action (line=67) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=69) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=76) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: uses-library (line=80) A: android:name(0x01010003)="org.apache.http.legacy" (Raw: "org.apache.http.legacy") A: android:required(0x0101028e)=(type 0x12)0x0 E: activity (line=84) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity") A: android:exported(0x01010010)=(type 0x12)0x0 E: meta-data (line=89) A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version") A: android:value(0x01010024)=@0x7f060000 [ ] Stopping app 'app.apk' on GM1901. [ ] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 shell am force-stop com.example.bug [ +98 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 shell pm list packages com.example.bug [ +82 ms] package:com.example.bug [ +4 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 shell cat /data/local/tmp/sky.com.example.bug.sha1 [ +79 ms] 6d988f9be6d1f9271de17174c6421305e8d1adcf [ +1 ms] Installing APK. [ +3 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb version [ +10 ms] Android Debug Bridge version 1.0.41 Version 30.0.3-6597393 Installed as /Users/sabrish/Library/Android/sdk/platform-tools/adb [ +1 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb start-server Installing build/app/outputs/apk/app.apk... [ +15 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 install -t -r /Users/sabrish/Desktop/flutter_google_maps_bug/bug/build/app/outputs/apk/app.apk [+3574 ms] Performing Streamed Install Success [ +4 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 shell echo -n 593e380ec865b1d8e2a8f345d01d987c182d7a74 > /data/local/tmp/sky.com.example.bug.sha1 [ +53 ms] GM1901 startApp [ +3 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 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 --ez verify-entry-points true com.example.bug/com.example.bug.MainActivity [ +109 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [ +835 ms] Observatory URL on device: http://127.0.0.1:41841/HRqKiLLP01c=/ [ +1 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s 198a1db6 forward tcp:0 tcp:41841 [ +8 ms] 62903 [ ] Forwarded host port 62903 to device port 41841 for Observatory [ +10 ms] Connecting to service protocol: http://127.0.0.1:62903/HRqKiLLP01c=/ [ +218 ms] Successfully connected to service protocol: http://127.0.0.1:62903/HRqKiLLP01c=/ [ +2 ms] Sending to VM service: getVM({}) [ +7 ms] Result: {type: VM, name: vm, architectureBits: 64, hostCPU: Qualcomm Technologies, Inc SM8150, operatingSystem: android, targetCPU: arm64, version: 2.8.4 (stable) (Wed Jun 3 12:26:04 2020 +0200) on "android_arm64", _profilerMode: VM, _nativeZoneMemoryUsag... [ +4 ms] Sending to VM service: getIsolate({isolateId: isolates/1872307358075751}) [ +3 ms] Sending to VM service: _flutter.listViews({}) [ +22 ms] Result: {type: Isolate, id: isolates/1872307358075751, name: main, number: 1872307358075751, _originNumber: 1872307358075751, startTime: 1596208301449, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger, collections: 0, avgCollectionPeriodMillis... [ +13 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x78d3651c20, isolate: {type: @Isolate, fixedId: true, id: isolates/1872307358075751, name: main.dart$main-1872307358075751, number: 1872307358075751}}]} [ +5 ms] DevFS: Creating new filesystem on the device (null) [ ] Sending to VM service: _createDevFS({fsName: bug}) [ +21 ms] Result: {type: FileSystem, name: bug, uri: file:///data/user/0/com.example.bug/code_cache/bugUPMWIU/bug/} [ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugUPMWIU/bug/) [ +1 ms] Updating assets Debug service listening on ws://127.0.0.1:62903/HRqKiLLP01c=/ws Syncing files to device GM1901... [ +69 ms] Scanning asset files [ +4 ms] <- reset [ +1 ms] Compiling dart to kernel with 0 updated files [ +3 ms] <- recompile package:bug/main.dart 1b145c64-42f9-4fd4-bc57-b889e7663d07 [ ] <- 1b145c64-42f9-4fd4-bc57-b889e7663d07 [ +67 ms] Updating files [ +101 ms] W/PlatformViewsController(12721): Creating a virtual display of size: [1080, 2340] may result in problems(https://github.com/flutter/flutter/issues/2897).It is larger than the device screen size: [1080, 2260]. [ +10 ms] DevFS: Sync finished [ +1 ms] Synced 0.9MB. [ +1 ms] Sending to VM service: _flutter.listViews({}) [ +5 ms] I/zzbz (12721): Making Creator dynamically [ +1 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0x78d3651c20, isolate: {type: @Isolate, fixedId: true, id: isolates/1872307358075751, name: main.dart$main-1872307358075751, number: 1872307358075751}}]} [ ] <- accept [ ] Connected to _flutterView/0x78d3651c20. [ +10 ms] W/com.example.bu(12721): Unsupported class loader [ +1 ms] I/DynamiteModule(12721): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:202414000 [ ] I/DynamiteModule(12721): Selected remote version of com.google.android.gms.maps_dynamite, version >= 202414000 [ ] V/DynamiteModule(12721): Dynamite loader version >= 2, using loadModule2NoCrashUtils [ +3 ms] W/Gralloc3(12721): allocator 3.x is not supported [ +11 ms] I/DynamiteLoaderV2(12721): [71] Mapsdynamite [ +23 ms] I/Google Maps Android API(12721): Google Play services client version: 12451000 [ +4 ms] I/Google Maps Android API(12721): Google Play services package version: 202414037 [ +44 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +1 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ +2 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->allocateInstance(Ljava/lang/Class;)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->peekLong(JZ)J (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->pokeLong(JJZ)V (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->pokeInt(JIZ)V (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->peekInt(JZ)I (greylist, reflection, allowed) [ +1 ms] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->pokeByte(JB)V (greylist, reflection, allowed) [ +2 ms] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->peekByte(J)B (greylist, reflection, allowed) [ +1 ms] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->pokeByteArray(J[BII)V (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Llibcore/io/Memory;->peekByteArray(J[BII)V (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I (greylist,core-platform-api, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->arrayIndexScale(Ljava/lang/Class;)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, reflection, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, reflection, allowed) [ +1 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ +120 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) [ +26 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +7 ms] V/ViewRootImpl(12721): The specified message queue synchronization barrier token has not been posted or has already been removed [ +27 ms] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/1872307358075751}) [ +1 ms] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/1872307358075751}) [ +3 ms] Sending to VM service: ext.flutter.inspector.structuredErrors({enabled: true, isolateId: isolates/1872307358075751}) [ +2 ms] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.platformOverride({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.timeDilation({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.debugPaint({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.debugPaintBaselinesEnabled({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.repaintRainbow({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.showPerformanceOverlay({isolateId: isolates/1872307358075751}) [ +1 ms] Sending to VM service: ext.flutter.debugAllowBanner({isolateId: isolates/1872307358075751}) [ +1 ms] Sending to VM service: ext.flutter.inspector.structuredErrors({isolateId: isolates/1872307358075751}) [ +3 ms] Sending to VM service: ext.flutter.inspector.show({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.inspector.trackRebuildDirtyWidgets({enabled: false, isolateId: isolates/1872307358075751}) [ ] Sending to VM service: ext.flutter.inspector.trackRepaintWidgets({enabled: false, isolateId: isolates/1872307358075751}) [ ] E/GoogleMapController(12721): Cannot enable MyLocation layer as location permissions are not granted [ +13 ms] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride} [ +19 ms] I/flutter (12721): LatLngBounds(LatLng(19.2057856, 73.10183510000002), LatLng(19.230036, 72.98368010000002)) [ +1 ms] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation} [ +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay} [ ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner} [ +2 ms] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.structuredErrors} [ +1 ms] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets} [ ] Result: {value: android, type: _extensionType, method: ext.flutter.platformOverride} [ ] Result: {timeDilation: 1.0, type: _extensionType, method: ext.flutter.timeDilation} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaint} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.debugPaintBaselinesEnabled} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.repaintRainbow} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.showPerformanceOverlay} [ ] Result: {enabled: true, type: _extensionType, method: ext.flutter.debugAllowBanner} [ ] Result: {enabled: true, type: _extensionType, method: ext.flutter.inspector.structuredErrors} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.show} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRebuildDirtyWidgets} [ ] Result: {enabled: false, type: _extensionType, method: ext.flutter.inspector.trackRepaintWidgets} [ +512 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) [ +2 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +1 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +16 ms] I/chatty (12721): uid=10439(com.example.bug) androidmapsapi- identical 13 lines [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] D/NetworkSecurityConfig(12721): No Network Security Config specified, using platform default [ ] I/DpmTcmClient(12721): RegisterTcmMonitor from: $Proxy0 [ +507 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +17 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +7 ms] I/chatty (12721): uid=10439(com.example.bug) androidmapsapi- identical 3 lines [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putInt(Ljava/lang/Object;JI)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +5 ms] I/chatty (12721): uid=10439(com.example.bug) androidmapsapi- identical 1 line [ +1 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +8 ms] I/chatty (12721): uid=10439(com.example.bug) androidmapsapi- identical 3 lines [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +2 ms] I/chatty (12721): uid=10439(com.example.bug) identical 2 lines [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +3 ms] I/chatty (12721): uid=10439(com.example.bug) identical 1 line [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +763 ms] W/DynamiteModule(12721): Local module descriptor class for com.google.android.gms.googlecertificates not found. [ +6 ms] I/DynamiteModule(12721): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4 [ ] I/DynamiteModule(12721): Selected remote version of com.google.android.gms.googlecertificates, version >= 4 [ ] I/DynamiteLoaderV2(12721): [71] Googlecertificates [ +15 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ +6 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ +9 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) [ +1 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +9 ms] I/chatty (12721): uid=10439(com.example.bug) GoogleApiHandle identical 13 lines [ +1 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +383 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +52 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getInt(Ljava/lang/Object;J)I (greylist, linking, allowed) [+1412 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ +2 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +307 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ +6 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +17 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +517 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ +18 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ ] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) [+5417 ms] I/flutter (12721): LatLngBounds(LatLng(-50.54430991375401, -143.11797212809324), LatLng(69.48237761903152, -70.79650562256575)) [+1988 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->putObject(Ljava/lang/Object;JLjava/lang/Object;)V (greylist, linking, allowed) [ +2 ms] W/com.example.bu(12721): Accessing hidden method Lsun/misc/Unsafe;->getObject(Ljava/lang/Object;J)Ljava/lang/Object; (greylist, linking, allowed) ``` ```log Analyzing bug... No issues found! (ran in 4.5s) ``` ```log [✓] Flutter (Channel stable, v1.17.3, on Mac OS X 10.14.6 18G6020, locale en-GB) • Flutter version 1.17.3 at /Users/sabrish/Documents/tools/flutter • Framework revision b041144f83 (8 weeks ago), 2020-06-04 09:26:11 -0700 • Engine revision ee76268252 • Dart version 2.8.4 [!] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/sabrish/Library/Android/sdk • Platform android-29, build-tools 28.0.3 • ANDROID_HOME = /Users/sabrish/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [✓] Xcode - develop for iOS and macOS (Xcode 11.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.3, Build version 11C29 • CocoaPods version 1.9.3 [✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 47.1.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) [!] IntelliJ IDEA Ultimate Edition (version 2018.3.2) • IntelliJ at /Applications/IntelliJ IDEA.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.dev/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.47.3) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.12.2 [✓] Connected device (1 available) • GM1901 • 198a1db6 • android-arm64 • Android 10 (API 29) ! Doctor found issues in 2 categories. ```
codiyer commented 4 years ago

Similar to issue #59502

darwin-morocho commented 4 years ago

Same issue on Android. On iOS works fine.

darshankawar commented 4 years ago

Hi @codiyer, There's similar open issue describing your case, 59403. Please follow-up there for updates. Closing this as duplicate. If you disagree, write in comments and I'll reopen. Thanks.

codiyer commented 4 years ago

Hi @codiyer, There's similar open issue describing your case, 59403. Please follow-up there for updates. Closing this as duplicate. If you disagree, write in comments and I'll reopen. Thanks.

Hi @darshankawar , I am not sure whether this issue is a duplicate of the mentioned issue since in this case when I am retriving the LatLngBounds using _mapController.getVisibleRegion() it is actually returning me the bounds of some LatLng in South Pacific region and another in a North Eastern Corner of Canada. However I had to add a considerable delay to get that LatLngBounds since trying to retrieve just after await _mapController.animateCamera did not seem to work for some reason or the other.

The main issue here however is that the camera is animating to some LatLngBounds in Pacific region, as compared to the bounds which is given to get, and not the delayed retrieval of _mapController.getVisibleRegion().

darshankawar commented 4 years ago

Hi @codiyer, I ran the code on latest Stable (1.20.1) and noticed that lat and long are showing up as expected:

I/flutter (15226): LatLngBounds(LatLng(19.2057856, 73.10183510000002), LatLng(19.230036, 72.98368010000002))

flutter doctor -v ``` [✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.15.2 19C57, locale en-US) • Flutter version 1.20.1 at /Users/deeptibelsare/Documents/Fluttersdk/flutter • Framework revision 2ae34518b8 (30 hours ago), 2020-08-05 19:53:19 -0700 • Engine revision c8e3b94853 • Dart version 2.9.0 [!] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at /Users/deeptibelsare/Library/Android/sdk • Platform android-29, build-tools 29.0.3 • ANDROID_HOME = /Users/deeptibelsare/Library/Android/sdk • ANDROID_SDK_ROOT = /Users/deeptibelsare/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211) ✗ Android license status unknown. Try re-installing or updating your Android SDK Manager. See https://developer.android.com/studio/#downloads or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions. [✓] Xcode - develop for iOS and macOS (Xcode 11.6) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.6, Build version 11E708 • CocoaPods version 1.9.3 [✓] Android Studio (version 3.6) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 45.1.1 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211) [✓] Connected device (2 available) • SM A260G (mobile) • 5200763ebcfa861f • android-arm • Android 8.1.0 (API 27) • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) ! Doctor found issues in 1 category. ```

Can you try to upgrade stable to latest and see if it works for you now ? Thanks.

codiyer commented 4 years ago

Hi @darshankawar Tried upgrading to version 1.20.1 and running the code again and it still gives me the same issue.

flutter doctor -v ``` [✓] Flutter (Channel stable, 1.20.1, on Mac OS X 10.14.6 18G6020, locale en-GB) • Flutter version 1.20.1 at /Users/sabrish/Documents/tools/flutter • Framework revision 2ae34518b8 (8 days ago), 2020-08-05 19:53:19 -0700 • Engine revision c8e3b94853 • Dart version 2.9.0 [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/sabrish/Library/Android/sdk • Platform android-29, build-tools 28.0.3 • ANDROID_HOME = /Users/sabrish/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 11.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.3, Build version 11C29 • CocoaPods version 1.9.3 [✓] Android Studio (version 4.0) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 47.1.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) [!] IntelliJ IDEA Ultimate Edition (version 2018.3.2) • IntelliJ at /Applications/IntelliJ IDEA.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.dev/intellij-setup/#installing-the-plugins [✓] VS Code (version 1.47.3) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.13.2 [✓] Connected device (1 available) • AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) ```
Logs ``` [ +150 ms] executing: [/Users/sabrish/Documents/tools/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +52 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 2ae34518b87dd891355ed6c6ea8cb68c4d52bb9d [ ] executing: [/Users/sabrish/Documents/tools/flutter/] git tag --contains HEAD [ +193 ms] Exit code 0 from: git tag --contains HEAD [ ] 1.20.1 [ +9 ms] executing: [/Users/sabrish/Documents/tools/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [/Users/sabrish/Documents/tools/flutter/] git ls-remote --get-url origin [ +12 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +69 ms] executing: [/Users/sabrish/Documents/tools/flutter/] git rev-parse --abbrev-ref HEAD [ +14 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +7 ms] executing: sw_vers -productName [ +30 ms] Exit code 0 from: sw_vers -productName [ ] Mac OS X [ ] executing: sw_vers -productVersion [ +19 ms] Exit code 0 from: sw_vers -productVersion [ ] 10.14.6 [ ] executing: sw_vers -buildVersion [ +16 ms] Exit code 0 from: sw_vers -buildVersion [ ] 18G6020 [ +57 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +28 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb devices -l [ +12 ms] executing: /usr/bin/xcode-select --print-path [ +18 ms] Exit code 0 from: /usr/bin/xcode-select --print-path [ ] /Applications/Xcode.app/Contents/Developer [ +1 ms] executing: /usr/bin/xcodebuild -version [ +328 ms] Exit code 0 from: /usr/bin/xcodebuild -version [ +2 ms] Xcode 11.3 Build version 11C29 [ +5 ms] executing: xcrun --find xcdevice [ +15 ms] Exit code 0 from: xcrun --find xcdevice [ ] /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice [ ] executing: xcrun xcdevice list --timeout 2 [ +6 ms] /usr/bin/xcrun simctl list --json devices [ ] executing: /usr/bin/xcrun simctl list --json devices [ +50 ms] List of devices attached emulator-5554 device product:sdk_gphone_x86_arm model:AOSP_on_IA_Emulator device:generic_x86_arm transport_id:1 [ +101 ms] { "devices" : { "com.apple.CoreSimulator.SimRuntime.watchOS-5-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 38mm", "udid" : "1A691F13-731D-42D8-81BA-FDB9811755D4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 42mm", "udid" : "70253697-EF89-411E-B6DE-B9F64AA82007", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 38mm", "udid" : "56CC325A-63FF-41FA-9EDF-D15D64C41E03", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 42mm", "udid" : "57491FDB-6AB1-4121-AEEA-9A99D13937D9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 40mm", "udid" : "C54C711F-BDCF-4FA0-B6DC-6F485C178207", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 44mm", "udid" : "300F9B83-8F6A-46B1-86E5-6DB97C9A8331", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.tvOS-12-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV", "udid" : "D6B5F721-12ED-4F6F-8A26-E104766174B4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K (at 1080p)", "udid" : "591C7460-2737-4DAD-92AD-DAD2FAB2F99C", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K", "udid" : "91557F17-2A80-4CF8-9E20-8DA95A9F2423", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.tvOS-12-2" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV", "udid" : "24C8F91E-E635-4F94-A499-B9EB0A428087", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K (at 1080p)", "udid" : "B5D0E888-8422-4775-8328-F10CF0DE6BB1", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K", "udid" : "62461BC3-0C16-487C-A92D-8EE35EB5A096", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.iOS-12-2" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 5s", "udid" : "AAD01130-0D2F-456B-921F-C88CDB26EA2B", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6 Plus", "udid" : "0725313E-32B3-4B7A-9991-8A6155C8B8F0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6", "udid" : "0E044513-F5F4-46CD-B806-5BD7A84E78E4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s", "udid" : "3A22514F-B574-4CE3-9CF6-396FE3E6B281", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s Plus", "udid" : "A3B649BD-6C07-466A-B8C2-8B4D1B90B4E7", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone SE", "udid" : "E431E7E0-7C23-4747-AAE8-94BA2FC7F2A2", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7", "udid" : "68E83E29-597E-4575-A240-0BA8AA2AD5B4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7 Plus", "udid" : "B736E2F1-B55C-47D2-BE92-83C493F694F8", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8", "udid" : "75D6CEC4-B8FD-4872-9DF4-915069CFB249", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8 Plus", "udid" : "D4A63BE5-4D2A-4D3F-BB59-D237570EE259", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone X", "udid" : "17D72B5C-42CD-468C-9FF2-4A24566DDBA9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone Xs", "udid" : "5AE679E3-FC38-43F1-A6BC-3D83E181C24A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone Xs Max", "udid" : "836F81CA-D9C5-4EA3-A195-5D3DFC7A1EFF", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone Xʀ", "udid" : "C4A3B5A2-A3B8-4431-9FA8-992F416F2BD0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air", "udid" : "AE717F36-6E08-4394-9087-7CC622E93FC5", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air 2", "udid" : "B18B1A38-30DB-43DD-ABAD-A8AE13493A21", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (9.7-inch)", "udid" : "8F42E6AD-EDF7-4B0F-A976-62864FFEBA07", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch)", "udid" : "B7E0116B-74AC-4EA4-8BE3-BBABAF1365C6", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (5th generation)", "udid" : "F3A94DB0-E612-4500-B51F-AFDAD597A2F0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (2nd generation)", "udid" : "F4A48EDC-5991-47EE-981A-888B1EC4F9C5", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (10.5-inch)", "udid" : "17388B61-C3CE-4ABD-B328-32C5A4404B0E", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (6th generation)", "udid" : "C4378532-A69D-4240-95DC-A5DD477DD4D0", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (11-inch)", "udid" : "B2C61F2D-CBFE-42E0-B596-5FD30E6F4506", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (3rd generation)", "udid" : "46F53C07-A66E-4768-9314-B27BAC1D335C", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air (3rd generation)", "udid" : "408612CA-5E0E-4ABF-9370-5BD807FCB911", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.iOS-13-3" : [ { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8", "udid" : "25D68A9F-987E-427A-8607-A9DCD3966D16" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 8 Plus", "udid" : "CD6BFE62-CDC4-4874-9121-B4215C1CE965" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11", "udid" : "3CEE898F-D357-4B56-B7D9-5335E4650472" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11 Pro", "udid" : "B04D37E4-C7F4-4988-93BF-AB3BD9D1F6D4" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 11 Pro Max", "udid" : "1BBB7C34-24B5-498B-A3AA-E27428708CCF" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (9.7-inch)", "udid" : "D85E95B9-C35D-464F-B84F-6CD4663C860D" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad (7th generation)", "udid" : "9890757D-D508-4BCE-A309-3833A410BB99" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (11-inch)", "udid" : "676594F2-8841-4654-BD89-0F5602A7DC29" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Pro (12.9-inch) (3rd generation)", "udid" : "EC46E0BF-36A2-4915-9DBE-9648541EB6D2" }, { "state" : "Shutdown", "isAvailable" : true, "name" : "iPad Air (3rd generation)", "udid" : "5753F39F-BBAD-4E9A-BD0D-838985800733" } ], "com.apple.CoreSimulator.SimRuntime.watchOS-5-2" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 38mm", "udid" : "3507A4C3-023E-4523-A292-183CD5362A10", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 2 - 42mm", "udid" : "97A59117-04DC-42A2-A43B-4551E391415F", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 38mm", "udid" : "CB4E13C1-45CD-45F4-8ED7-EDAFEA3471B5", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 3 - 42mm", "udid" : "8B80FDDC-14D8-47A2-80E2-C12E70E08FD9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 40mm", "udid" : "3542274B-B7A9-4DFC-A834-D48A3D980207", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 44mm", "udid" : "019F8AB5-7332-41F2-B648-66F14ED03637", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.watchOS-6-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 40mm", "udid" : "F7B9EDD1-E614-464D-AC90-EEF79715FDB6", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 4 - 44mm", "udid" : "EB6EE3BA-A864-4E18-9F3D-0648404FE16A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 5 - 40mm", "udid" : "3558F4D3-B10F-46EF-A85C-A4005192FBE3", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple Watch Series 5 - 44mm", "udid" : "74A0CFC8-FB05-4021-AA45-1F4B93D96491", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.iOS-12-1" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 5s", "udid" : "0FD59A2C-62E4-4924-A425-5E712E5BC2B9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6 Plus", "udid" : "54C68982-4BE7-4DF6-B7D0-5E47AB85E2AB", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6", "udid" : "722BD834-96E7-483B-B9E4-6FC80F002C8A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s", "udid" : "2C6ADD70-93D2-48CB-AF00-140718636734", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 6s Plus", "udid" : "F819E969-398F-4257-B44B-E4DD06372D41", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone SE", "udid" : "1C34B443-ED54-4288-A180-233AD53A9153", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7", "udid" : "144CDACB-197E-45CA-BCC7-D84C10C62AD4", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 7 Plus", "udid" : "501CEE06-5F37-4A08-895B-0C5E44794AA8", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8", "udid" : "9060D3F9-FE82-404E-8AF2-177CB3CCD4F9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone 8 Plus", "udid" : "0F88A27F-51C9-4D02-9747-23D4930EE6F1", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone X", "udid" : "9B317650-FCD1-4C44-843B-920DD9CBA790", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone XS", "udid" : "6F875BEA-1679-4C5E-BDA8-BFAD8C980D32", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone XS Max", "udid" : "9D384FC3-47B6-4402-B6C6-5E384E4C79B1", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPhone XR", "udid" : "A12869EF-2990-4F7B-BBA4-21DDC62D7525", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air", "udid" : "1EB3F984-7BC3-4D35-8B59-4A0B3AA8DBC2", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Air 2", "udid" : "0F2EDF23-F2D6-4E45-B090-E33DDEA1190A", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (9.7-inch)", "udid" : "1EE05F71-985B-457A-A757-D83F84F27A41", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch)", "udid" : "67FEFC2E-C1D4-4F12-AAE8-C78BCA3E3FE6", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (5th generation)", "udid" : "3EDA426E-F174-45A9-88AB-C47D9AFB1296", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (2nd generation)", "udid" : "42FB1C6C-5426-465C-94C2-034D6DDA9024", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (10.5-inch)", "udid" : "7766DDC8-D0FA-43EC-9FBB-D198780CC634", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad (6th generation)", "udid" : "DCF93923-D42D-4CAA-ACEA-53B158BDBA7C", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (11-inch)", "udid" : "05CF8B9C-C245-48F3-872F-3AD79E583079", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "iPad Pro (12.9-inch) (3rd generation)", "udid" : "B97627A8-C753-41EE-8441-23465D022C79", "availabilityError" : "runtime profile not found" } ], "com.apple.CoreSimulator.SimRuntime.tvOS-13-3" : [ { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV", "udid" : "0576C4DF-979C-49A1-8547-2DF41DD546F3", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K (at 1080p)", "udid" : "0E088E93-A2BB-4C8A-A975-7451E026F3E9", "availabilityError" : "runtime profile not found" }, { "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K", "udid" : "7A036BCB-14A8-4F27-88F6-07BFAB33D8F9", "availabilityError" : "runtime profile not found" } ] } } [+2624 ms] [ { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad6,4", "identifier" : "D85E95B9-C35D-464F-B84F-6CD4663C860D", "architecture" : "x86_64", "modelName" : "iPad Pro (9.7-inch)", "name" : "iPad Pro (9.7-inch)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,5", "identifier" : "EC46E0BF-36A2-4915-9DBE-9648541EB6D2", "architecture" : "x86_64", "modelName" : "iPad Pro (12.9-inch) (3rd generation)", "name" : "iPad Pro (12.9-inch) (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,3", "identifier" : "B04D37E4-C7F4-4988-93BF-AB3BD9D1F6D4", "architecture" : "x86_64", "modelName" : "iPhone 11 Pro", "name" : "iPhone 11 Pro" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,1", "identifier" : "3CEE898F-D357-4B56-B7D9-5335E4650472", "architecture" : "x86_64", "modelName" : "iPhone 11", "name" : "iPhone 11" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad7,12", "identifier" : "9890757D-D508-4BCE-A309-3833A410BB99", "architecture" : "x86_64", "modelName" : "iPad (7th generation)", "name" : "iPad (7th generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone12,5", "identifier" : "1BBB7C34-24B5-498B-A3AA-E27428708CCF", "architecture" : "x86_64", "modelName" : "iPhone 11 Pro Max", "name" : "iPhone 11 Pro Max" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,4", "identifier" : "25D68A9F-987E-427A-8607-A9DCD3966D16", "architecture" : "x86_64", "modelName" : "iPhone 8", "name" : "iPhone 8" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad8,1", "identifier" : "676594F2-8841-4654-BD89-0F5602A7DC29", "architecture" : "x86_64", "modelName" : "iPad Pro (11-inch)", "name" : "iPad Pro (11-inch)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPad11,3", "identifier" : "5753F39F-BBAD-4E9A-BD0D-838985800733", "architecture" : "x86_64", "modelName" : "iPad Air (3rd generation)", "name" : "iPad Air (3rd generation)" }, { "simulator" : true, "operatingSystemVersion" : "13.3 (17C45)", "available" : true, "platform" : "com.apple.platform.iphonesimulator", "modelCode" : "iPhone10,5", "identifier" : "CD6BFE62-CDC4-4874-9121-B4215C1CE965", "architecture" : "x86_64", "modelName" : "iPhone 8 Plus", "name" : "iPhone 8 Plus" } ] [ +7 ms] /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop [ +43 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +114 ms] Found plugin flutter_plugin_android_lifecycle at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.8/ [ +6 ms] Found plugin google_maps_flutter at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.28+1/ [ +67 ms] Found plugin flutter_plugin_android_lifecycle at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.8/ [ +1 ms] Found plugin google_maps_flutter at /Users/sabrish/Documents/tools/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.28+1/ [ +73 ms] Generating /Users/sabrish/Desktop/trial/flutter_app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +52 ms] ro.hardware = ranchu [ +250 ms] Starting incremental build... [ +3 ms] Initializing file store [ +13 ms] Skipping target: gen_localizations [ +5 ms] complete [ +13 ms] /Users/sabrish/Documents/tools/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Users/sabrish/Documents/tools/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/sabrish/Documents/tools/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true -Dflutter.inspector.structuredErrors=true --output-dill /var/folders/wh/f0qzxcds0qz5_wbbx3wr91vr0000gn/T/flutter_tools.HIIJmw/flutter_tool.AtjYPN/app.dill --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --initialize-from-dill build/f872507f30e2ff2523f0f1d19160266e.cache.dill.track.dill Launching lib/main.dart on AOSP on IA Emulator in debug mode... [ +10 ms] executing: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/trial/flutter_app/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ +7 ms] Exit code 0 from: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/trial/flutter_app/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.ocufoxtech.flutter_app" (Raw: "com.ocufoxtech.flutter_app") A: platformBuildVersionCode=(type 0x10)0x1c A: platformBuildVersionName=(type 0x10)0x9 E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE") E: uses-feature (line=18) A: android:glEsVersion(0x01010281)=(type 0x11)0x20000 A: android:required(0x0101028e)=(type 0x12)0xffffffff E: application (line=28) A: android:label(0x01010001)="flutter_app" (Raw: "flutter_app") A: android:icon(0x01010002)=@0x7f080000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: meta-data (line=34) A: android:name(0x01010003)="com.google.android.geo.API_KEY" (Raw: "com.google.android.geo.API_KEY") A: android:value(0x01010024)="" (Raw: "") E: activity (line=38) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.ocufoxtech.flutter_app.MainActivity" (Raw: "com.ocufoxtech.flutter_app.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=52) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=62) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040015 E: intent-filter (line=66) E: action (line=67) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=69) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=76) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: uses-library (line=80) A: android:name(0x01010003)="org.apache.http.legacy" (Raw: "org.apache.http.legacy") A: android:required(0x0101028e)=(type 0x12)0x0 E: activity (line=84) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity") A: android:exported(0x01010010)=(type 0x12)0x0 E: meta-data (line=89) A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version") A: android:value(0x01010024)=@0x7f060000 [ +8 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1 [ +31 ms] Exit code 0 from: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1 [ ] --------- beginning of main 08-14 00:00:53.677 I/GnssLocationProvider( 1933): WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@796c468) [ +2 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1 [ +22 ms] Exit code 0 from: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1 [ ] --------- beginning of main 08-14 00:00:53.677 I/GnssLocationProvider( 1933): WakeLock released by handleMessage(REPORT_SV_STATUS, 0, com.android.server.location.GnssLocationProvider$SvStatusInfo@796c468) [ +13 ms] <- compile package:flutter_app/main.dart [ +11 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb version [ +25 ms] Android Debug Bridge version 1.0.41 Version 30.0.3-6597393 Installed as /Users/sabrish/Library/Android/sdk/platform-tools/adb [ +2 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb start-server [ +8 ms] Building APK Running Gradle task 'assembleDebug'... [ +29 ms] gradle.properties already sets `android.enableR8` [ +7 ms] Using gradle from /Users/sabrish/Desktop/trial/flutter_app/android/gradlew. [ +5 ms] /Users/sabrish/Desktop/trial/flutter_app/android/gradlew mode: 33261 rwxr-xr-x. [+1956 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ +15 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist [ ] {"CFBundleName":"Android Studio","JVMOptions":{"MainClass":"com.intellij.idea.Main","ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.jar:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","Properties":{"idea.home.path":"$APP_PACKAGE\/Contents","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.paths.selector":"AndroidStudio4.0"},"WorkingDirectory":"$APP_PACKAGE\/Contents\/bin"},"NSDesktopFolderUsageDescription":"An application in Android Studio requests access to the user's Desktop folder.","LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-193.6911.18.40.6514223","CFBundleDevelopmentRegion":"English","NSCameraUsageDescription":"An application in Android Studio requests access to the device's camera.","CFBundleDocumentTypes":[{"CFBundleTypeExtensions":["ipr"],"CFBundleTypeName":"Android Studio Project File","CFBundleTypeIconFile":"studio.icns","CFBundleTypeRole":"Editor"},{"CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"LSTypeIsPackage":false,"CFBundleTypeName":"All documents","CFBundleTypeRole":"Editor"}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"APPL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"4.0","NSMicrophoneUsageDescription":"An application in Android Studio requests access to the device's microphone.","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","NSLocationUsageDescription":"An application in Android Studio requests access to the user's location information.","LSRequiresNativeExecution":"YES","CFBundleURLTypes":[{"CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"],"CFBundleTypeRole":"Editor"}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","NSDocumentsFolderUsageDescription":"An application in Android Studio requests access to the user's Documents folder.","NSDownloadsFolderUsageDescription":"An application in Android Studio requests access to the user's Downloads folder.","NSNetworkVolumesUsageDescription":"An application in Android Studio requests access to files on a network volume.","CFBundleGetInfoString":"Android Studio 4.0, build AI-193.6911.18.40.6514223. Copyright JetBrains s.r.o., (c) 2000-2020","NSRemovableVolumesUsageDescription":"An application in Android Studio requests access to files on a removable volume."} [ +3 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ +119 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version [ +1 ms] openjdk version "1.8.0_242-release" OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593) OpenJDK 64-Bit Server VM (build 25.242-b3-6222593, mixed mode) [ +5 ms] executing: [/Users/sabrish/Desktop/trial/flutter_app/android/] /Users/sabrish/Desktop/trial/flutter_app/android/gradlew -q -Ptarget-platform=android-x86 -Ptarget=/Users/sabrish/Desktop/trial/flutter_app/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root -Pdart-defines=flutter.inspector.structuredErrors%3Dtrue assembleDebug [+3976 ms] calculateSha: LocalDirectory: '/Users/sabrish/Desktop/trial/flutter_app/build/app/outputs/flutter-apk'/app.apk [ +77 ms] calculateSha: reading file took 76us [ +561 ms] calculateSha: computing sha took 560us ✓ Built build/app/outputs/flutter-apk/app-debug.apk. [ +31 ms] executing: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/trial/flutter_app/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ +34 ms] Exit code 0 from: /Users/sabrish/Library/Android/sdk/build-tools/28.0.3/aapt dump xmltree /Users/sabrish/Desktop/trial/flutter_app/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml [ +2 ms] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9") A: package="com.ocufoxtech.flutter_app" (Raw: "com.ocufoxtech.flutter_app") A: platformBuildVersionCode=(type 0x10)0x1c A: platformBuildVersionName=(type 0x10)0x9 E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c E: uses-permission (line=14) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE") E: uses-feature (line=18) A: android:glEsVersion(0x01010281)=(type 0x11)0x20000 A: android:required(0x0101028e)=(type 0x12)0xffffffff E: application (line=28) A: android:label(0x01010001)="flutter_app" (Raw: "flutter_app") A: android:icon(0x01010002)=@0x7f080000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory") E: meta-data (line=34) A: android:name(0x01010003)="com.google.android.geo.API_KEY" (Raw: "com.google.android.geo.API_KEY") A: android:value(0x01010024)="AIzaSyB2lGzmAORSoW3W044mesHitvA8ucxnnWU" (Raw: "AIzaSyB2lGzmAORSoW3W044mesHitvA8ucxnnWU") E: activity (line=38) A: android:theme(0x01010000)=@0x7f0a0000 A: android:name(0x01010003)="com.ocufoxtech.flutter_app.MainActivity" (Raw: "com.ocufoxtech.flutter_app.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=52) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0a0001 E: meta-data (line=62) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f040015 E: intent-filter (line=66) E: action (line=67) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=69) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=76) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: uses-library (line=80) A: android:name(0x01010003)="org.apache.http.legacy" (Raw: "org.apache.http.legacy") A: android:required(0x0101028e)=(type 0x12)0x0 E: activity (line=84) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity") A: android:exported(0x01010010)=(type 0x12)0x0 E: meta-data (line=89) A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version") A: android:value(0x01010024)=@0x7f060000 [ +5 ms] Stopping app 'app.apk' on AOSP on IA Emulator. [ +2 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.ocufoxtech.flutter_app [ +95 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.ocufoxtech.flutter_app [ +73 ms] package:com.ocufoxtech.flutter_app [ +7 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.ocufoxtech.flutter_app.sha1 [ +36 ms] f1d38425f79258672b4ce18043cad438889dcc96 [ +1 ms] Latest build already installed. [ ] AOSP on IA Emulator startApp [ +5 ms] executing: /Users/sabrish/Library/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 --ez verify-entry-points true com.ocufoxtech.flutter_app/com.ocufoxtech.flutter_app.MainActivity [ +211 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.ocufoxtech.flutter_app/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [+3166 ms] Observatory URL on device: http://127.0.0.1:44122/jm8Aq-O_gpk=/ [ +2 ms] executing: /Users/sabrish/Library/Android/sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:44122 [ +15 ms] 55102 [ ] Forwarded host port 55102 to device port 44122 for Observatory [ +9 ms] Caching compiled dill [ +45 ms] Connecting to service protocol: http://127.0.0.1:55102/jm8Aq-O_gpk=/ [ +653 ms] Successfully connected to service protocol: http://127.0.0.1:55102/jm8Aq-O_gpk=/ Waiting for AOSP on IA Emulator to report its views... [ +79 ms] DevFS: Creating new filesystem on the device (null) [ +102 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.ocufoxtech.flutter_app/code_cache/flutter_appVWFGXS/flutter_app/) [ +5 ms] Updating assets Debug service listening on ws://127.0.0.1:55102/jm8Aq-O_gpk=/ws Syncing files to device AOSP on IA Emulator... [ +195 ms] Scanning asset files [ +4 ms] <- reset [ +2 ms] Compiling dart to kernel with 0 updated files [ +2 ms] <- recompile package:flutter_app/main.dart 7be69b2a-fad8-46d6-aa1e-2fb3d037d5b6 [ ] <- 7be69b2a-fad8-46d6-aa1e-2fb3d037d5b6 [ +86 ms] Updating files [ +799 ms] DevFS: Sync finished [ +1 ms] Synced 0.9MB. [ +1 ms] <- accept [ +11 ms] Connected to _flutterView/0xf2acec10. D/EGL_emulation(17062): eglMakeCurrent: 0xec52c860: ver 3 0 (tinfo 0xec4d89e0) D/eglCodecCommon(17062): setVertexArrayObject: set vao to 0 (0) 1 0 I/zzbz (17062): Making Creator dynamically W/ech.flutter_ap(17062): Unsupported class loader W/ech.flutter_ap(17062): Skipping duplicate class check due to unsupported classloader I/DynamiteModule(17062): Considering local module com.google.android.gms.maps_dynamite:0 and remote module com.google.android.gms.maps_dynamite:202614000 I/DynamiteModule(17062): Selected remote version of com.google.android.gms.maps_dynamite, version >= 202614000 V/DynamiteModule(17062): Dynamite loader version >= 2, using loadModule2NoCrashUtils W/ech.flutter_ap(17062): Unsupported class loader W/ech.flutter_ap(17062): Skipping duplicate class check due to unsupported classloader I/Google Maps Android API(17062): Google Play services client version: 12451000 I/Google Maps Android API(17062): Google Play services package version: 202614031 W/ech.flutter_ap(17062): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection) D/NetworkSecurityConfig(17062): No Network Security Config specified, using platform default E/GoogleMapController(17062): Cannot enable MyLocation layer as location permissions are not granted I/flutter (17062): LatLngBounds(LatLng(19.2057856, 73.10183510000002), LatLng(19.230036, 72.98368010000002)) D/HostConnection(17062): HostConnection::get() New Host Connection established 0xd63ee5a0, tid 17132 D/HostConnection(17062): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 D/eglCodecCommon(17062): setVertexArrayObject: set vao to 0 (0) 0 0 D/EGL_emulation(17062): eglCreateContext: 0xec52d280: maj 1 min 0 rcv 1 D/EGL_emulation(17062): eglMakeCurrent: 0xec52c980: ver 3 0 (tinfo 0xd9d9d350) D/EGL_emulation(17062): eglMakeCurrent: 0xec52d280: ver 1 0 (tinfo 0xd6396590) D/EGL_emulation(17062): eglMakeCurrent: 0xec52c980: ver 3 0 (tinfo 0xd9d9d350) D/EGL_emulation(17062): eglMakeCurrent: 0xec52c980: ver 3 0 (tinfo 0xd9d9d350) D/EGL_emulation(17062): eglMakeCurrent: 0xec52c980: ver 3 0 (tinfo 0xd9d9d350) D/EGL_emulation(17062): eglMakeCurrent: 0xec52c980: ver 3 0 (tinfo 0xd9d9d350) W/DynamiteModule(17062): Local module descriptor class for com.google.android.gms.googlecertificates not found. I/DynamiteModule(17062): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:5 I/DynamiteModule(17062): Selected remote version of com.google.android.gms.googlecertificates, version >= 5 W/ech.flutter_ap(17062): Unsupported class loader W/ech.flutter_ap(17062): Skipping duplicate class check due to unsupported classloader I/flutter (17062): LatLngBounds(LatLng(-37.478503319084375, -143.11796844005585), LatLng(62.03410135258246, -70.79652976244688)) ```
darshankawar commented 4 years ago

Hi @codiyer, Not sure how to help out here. I tried on latest Stable (1.20.2) on emulator api 27 and see the expected lat and long per your original comment:

I/flutter ( 3719): LatLngBounds(LatLng(19.2057856, 73.10183510000002), LatLng(19.230036, 72.98368010000002))

ajayvelhal commented 4 years ago

I am also experiencing the same error as @codiyer with both the versions of flutter.I wish the solutions gets as soon as possible .

Logs ``` ```
codiyer commented 4 years ago

Hi @codiyer, Not sure how to help out here. I tried on latest Stable (1.20.2) on emulator api 27 and see the expected lat and long per your original comment:

I/flutter ( 3719): LatLngBounds(LatLng(19.2057856, 73.10183510000002), LatLng(19.230036, 72.98368010000002))

Hi @darshankawar To clear the doubt in my mind, I ran the code in emulator api 27 but to no avail. It still gives me this same strange issue. What is even stranger is that when I change the longitude of secondLocation to value lesser than the longitude of firstLocation it runs perfect. I am not sure as to why it's happening. Maybe this information might help in some way to understand where the issue is exactly happening

darshankawar commented 4 years ago

I am unable to replicate the issue on latest Stable (1.20.2) using emulator (api 27) and device (8.1.0) and consistently see the expected lat and long per OP's original comment. But it seems the OP is consistently seeing the issue at his end. I am keeping this issue open for further analysis.

julescmay commented 4 years ago

I had the same problem. I tracked it down to my coordinates: north is positive; east is positive. LatLngBounds checks that north > south, but it doesn't check that west < east. If west > east, then it includes longitude 180. That is: you'd be looking at a point directly opposite the center you're actually interested in, and encompassing (almost) the entire circumference of the planet.

Your secondlocation is southeast of firstlocation. LatLngBounds requires southwest and northeast corners.

codiyer commented 4 years ago

@julescmay Your explanation hit the bull's eye. A small change in updateCamera method got the code working as it should.

The updated code looks as follows

void updateCamera() async {
    final LatLng southwest = LatLng(
      min(firstLocation.latitude, secondLocation.latitude),
      min(firstLocation.longitude, secondLocation.longitude),
    );

    final LatLng northeast = LatLng(
      max(firstLocation.latitude, secondLocation.latitude),
      max(firstLocation.longitude, secondLocation.longitude),
    );

    LatLngBounds bounds = LatLngBounds(
      southwest: southwest,
      northeast: northeast,
    );
    print(bounds);
    await _mapController.animateCamera(
      CameraUpdate.newLatLngBounds(bounds, 50),
    );
    await Future.delayed(
      Duration(seconds: 10),
      () async => print(
        await _mapController.getVisibleRegion(),
      ),
    );
  }

However, this raises an issue that how did the same old code work in case of @darshankawar. If when the west > east, it includes 180, then it should be easily reproducible to everyone.

Also maybe we can have below snippet of code in the SDK itself and take 2 opposite corner co-ordinates as arguments in LatLngBounds.

    final LatLng southwest = LatLng(
      min(firstLocation.latitude, secondLocation.latitude),
      min(firstLocation.longitude, secondLocation.longitude),
    );

    final LatLng northeast = LatLng(
      max(firstLocation.latitude, secondLocation.latitude),
      max(firstLocation.longitude, secondLocation.longitude),
    );
    LatLngBounds bounds = LatLngBounds(
      southwest: southwest,
      northeast: northeast,
    );

This would make things much easier for many people.

julescmay commented 4 years ago

@codiyer In my code I did something similar to what you suggested (I was bounding a collection of markers). But beware! A general solution is a bit more tricky: if your markers genuinely cross the anti-meridian (say, you're in the Bering Sea, or some of the Pacific islands) , then you'll get wrong behaviour again, because there you'd want your view to include the anti-meridian.

There isn't a simple solution. If you only have two markers, there are two options, and you can select the one that gives you the smaller bounds (or the greater zoom). If there are more than two markers, you have to pick one orientation, see if it contains all your markers, and if not pick the other. I think that's why in the SDK they don't show code like your suggestion.

TahaTesser commented 3 years ago

I can also reproduce it using google_maps_flutter: ^2.0.3 on Android

code sample ```dart import 'package:flutter/material.dart'; import "package:flutter/cupertino.dart"; import 'package:google_maps_flutter/google_maps_flutter.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', home: TrialMaps(), ); } } class TrialMaps extends StatefulWidget { @override _TrialMapsState createState() => _TrialMapsState(); } class _TrialMapsState extends State { LatLng firstLocation = LatLng(19.230036, 72.98368010000002); LatLng secondLocation = LatLng(19.2057856, 73.10183510000002); late GoogleMapController _mapController; @override Widget build(BuildContext context) { return GoogleMap( initialCameraPosition: CameraPosition( target: firstLocation, zoom: 10, ), markers: { Marker(markerId: MarkerId("firstLocation"), position: firstLocation), Marker(markerId: MarkerId("secondLocation"), position: secondLocation) }, mapToolbarEnabled: false, onMapCreated: (GoogleMapController controller) { setState(() { _mapController = controller; }); updateCamera(); }, ); } void updateCamera() async { LatLngBounds bounds = LatLngBounds( southwest: secondLocation, northeast: firstLocation, ); print(bounds); await _mapController.animateCamera( CameraUpdate.newLatLngBounds(bounds, 50), ); await Future.delayed( Duration(seconds: 10), () async => print( await _mapController.getVisibleRegion(), ), ); } } ```
flutter doctor -v ```console [✓] Flutter (Channel stable, 2.0.6, on macOS 11.3 20E232 darwin-x64, locale en-GB) • Flutter version 2.0.6 at /Users/tahatesser/Code/flutter_stable • Framework revision 1d9032c7e1 (4 days ago), 2021-04-29 17:37:58 -0700 • Engine revision 05e680e202 • Dart version 2.12.3 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/SDK • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.5, Build version 12E262 • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] VS Code (version 1.55.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.22.0 [✓] Connected device (4 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator) • iPhone 12 (mobile) • 4D5BE4C8-BF1D-46CD-B595-FD81A7140B52 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.3 20E232 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93 • No issues found! ``` ```console [✓] Flutter (Channel master, 2.3.0-1.0.pre.226, on macOS 11.3 20E232 darwin-x64, locale en-GB) • Flutter version 2.3.0-1.0.pre.226 at /Users/tahatesser/Code/flutter_master • Upstream repository https://github.com/flutter/flutter.git • Framework revision 51ca131e39 (8 hours ago), 2021-05-03 19:54:04 -0700 • Engine revision 378e4dbc41 • Dart version 2.14.0 (build 2.14.0-48.0.dev) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Volumes/Extreme/SDK • Platform android-30, build-tools 30.0.3 • ANDROID_HOME = /Volumes/Extreme/SDK • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer • Xcode 12.5, Build version 12E262 • CocoaPods version 1.10.1 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 4.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495) [✓] IntelliJ IDEA Community Edition (version 2021.1.1) • IntelliJ at /Volumes/Extreme/IntelliJ IDEA CE.app • Flutter plugin version 55.1.5 • Dart plugin version 211.7233 [✓] VS Code (version 1.55.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.22.0 [✓] Connected device (4 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator) • iPhone 12 (mobile) • 4D5BE4C8-BF1D-46CD-B595-FD81A7140B52 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 11.3 20E232 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.93 • No issues found! ```
CuongNV12 commented 3 years ago

@julescmay Your explanation hit the bull's eye. A small change in updateCamera method got the code working as it should.

The updated code looks as follows

void updateCamera() async {
    final LatLng southwest = LatLng(
      min(firstLocation.latitude, secondLocation.latitude),
      min(firstLocation.longitude, secondLocation.longitude),
    );

    final LatLng northeast = LatLng(
      max(firstLocation.latitude, secondLocation.latitude),
      max(firstLocation.longitude, secondLocation.longitude),
    );

    LatLngBounds bounds = LatLngBounds(
      southwest: southwest,
      northeast: northeast,
    );
    print(bounds);
    await _mapController.animateCamera(
      CameraUpdate.newLatLngBounds(bounds, 50),
    );
    await Future.delayed(
      Duration(seconds: 10),
      () async => print(
        await _mapController.getVisibleRegion(),
      ),
    );
  }

However, this raises an issue that how did the same old code work in case of @darshankawar. If when the west > east, it includes 180, then it should be easily reproducible to everyone.

Also maybe we can have below snippet of code in the SDK itself and take 2 opposite corner co-ordinates as arguments in LatLngBounds.

    final LatLng southwest = LatLng(
      min(firstLocation.latitude, secondLocation.latitude),
      min(firstLocation.longitude, secondLocation.longitude),
    );

    final LatLng northeast = LatLng(
      max(firstLocation.latitude, secondLocation.latitude),
      max(firstLocation.longitude, secondLocation.longitude),
    );
    LatLngBounds bounds = LatLngBounds(
      southwest: southwest,
      northeast: northeast,
    );

This would make things much easier for many people.

Perfect solution, thank you!

bahadirarslan commented 1 year ago

Is there any improvement in this? Still facing this issue at 2.2.4. Or is there any workaround for this?

My calculated bounds are : southwest: [2.745579957962, -84.428101] northeast: [41.28111111, 101.70999908447]] but visible region result is LatLngBounds(LatLng(-35.03718629222689, 120.08623022586107), LatLng(64.69537469189713, -102.80433241277932))

So as depicted in the first post, I see the North Pacific ocean.

mossmana commented 9 months ago

Adding the fyi-ecosystem label for visibility.