Issue 1:
When I build the APP through Android studio, it gets installed on phone but closes suddenly and throws following error in the Android studio console.

Launching lib/main.dart on HTC Desire 820G PLUS dual sim in debug mode...
Initializing gradle...
Resolving dependencies...
Running 'gradlew assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
I/FlutterActivityDelegate(30286): onResume setting current activity to this
E/DartVM (30286): vm-service: Error: Unhandled exception:
E/DartVM (30286): 'dart:async/future_impl.dart': error: Unexpected tag 0 (Nothing) in ?, expected type
E/DartVM (30286): #0 Future._thenNoZoneRegistration (dart:async/future_impl.dart:250:5)
E/DartVM (30286): #1 _awaitHelper (dart:async/runtime/libasync_patch.dart:110:17)
E/DartVM (30286): #2 Server.startup (dart:vmservice_io/server.dart:364:13)
E/DartVM (30286): <asynchronous suspension>
E/DartVM (30286): #3 main (dart:vmservice_io:239:12)
E/DartVM (30286):
E/flutter (30286): [ERROR:flutter/runtime/dart_isolate.cc(719)] Isolate (1032737077) 'vm-service' exited with an error
E/flutter (30286): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter (30286): 'dart:async/future_impl.dart': error: Unexpected tag 0 (Nothing) in ?, expected type
E/flutter (30286): #0 Future._thenNoZoneRegistration (dart:async/future_impl.dart:250:5)
E/flutter (30286): #1 _awaitHelper (dart:async/runtime/libasync_patch.dart:110:17)
E/flutter (30286): #2 Server.startup (dart:vmservice_io/server.dart:364:13)
E/flutter (30286): <asynchronous suspension>
E/flutter (30286): #3 main (dart:vmservice_io:239:12)
Application finished.

Issue 2:
In reference to the camera plugin here

Steps to Reproduce

For me,

Make an app

Get the camera package

Import package:camera/camera.dart

Logs

Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

Joe’s iPhone • 12bd1a65da8516e2414d685901b4c79c34dde2ae • ios • iOS 11.2.6

When running flutter run -d 12bd1a65da8516e2414d685901b4c79c34dde2ae

Running Xcode clean... 1.3s

Starting Xcode build...

├─Building Dart code... 1.4s

├─Assembling Flutter resources... 2.5s

└─Compiling, linking and signing... 2.4s

Xcode build done 8.9s

Failed to build iOS app

Error output from Xcode build:

↳

** BUILD FAILED **

Xcode's output:

↳

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===

The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===

/Users/joseph/AndroidStudioProjects/science_fair_app/ios/Runner/GeneratedPluginRegistrant.m:6:9: fatal error: 'camera/CameraPlugin.h' file not found

#import <camera/CameraPlugin.h>

^~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

Could not build the precompiled application for the device.

Android devices work

Running flutter analyze

Analyzing /Users/joseph/AndroidStudioProjects/science_fair_app...

No issues found!

Ran in 7.1s

Flutter Doctor

[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.2 17C88, locale en-US)

• Flutter version 0.1.5 at /Users/joseph/Library/Flutter/flutter

• Framework revision 3ea4d06 (7 days ago), 2018-02-22 11:12:39 -0800

• Engine revision ead227f

• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)

• Android SDK at /Users/joseph/Library/Android/sdk

• Android NDK location not configured (optional; useful for native profiling support)

• Platform android-27, build-tools 27.0.3

• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)

• Xcode at /Applications/Xcode.app/Contents/Developer

• Xcode 9.2, Build version 9C40b

• ios-deploy 1.9.2

• CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)

• Android Studio at /Applications/Android Studio.app/Contents

• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.4)

• Flutter plugin version 22.2.2

• Dart plugin version 173.4127.31

[✓] Connected devices (2 available)