AndriousSolutions / ads

Other
58 stars 11 forks source link

After adding package 'flutter run' hangs at 'Installing build\app\outputs\apk\app.apk...' #28

Closed cjszk closed 4 years ago

cjszk commented 4 years ago
dependencies:
  percent_indicator: ^2.1.1
  flutter:
    sdk: flutter
  shared_preferences: ^0.5.6+3
  intl: ^0.16.1
  http: 0.12.0+4
  oauth2: ^1.5.0
  pie_chart: ^3.1.1
  flutter_datetime_picker: ^1.3.5
  charts_flutter: ^0.9.0
  barcode_scan: ^2.0.1
  flutter_spinkit: ^2.1.0
  flutter_svg: ^0.17.3+1
  ads: ^1.7.2

After adding ads: ^1.7.2 and installing then using 'flutter run' the following occurs:

$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Note: C\...\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\firebase_admob-0.9.3+1\android\src\main\java\io\flutter\plugins\firebaseadmob\AdRequestBuilderFactory.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        24.4s
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...                         0.6s

It never continues past this point.

Attempted: run 'flutter clean' run 'flutter doctor' (no issues)

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, v1.16.2-pre.41, on Microsoft Windows [Version 10.0.18363.720], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.43.2)
[√] Connected device (1 available)

The same problem occurs for different versions of the ads plugin.

cjszk commented 4 years ago

Closing, this issue was due to misconfigured firebase setup.