前提・実現したいこと
flutter_native_splashでスプラッシュ画面を作っていたのですが、再度画面を作成しようとするとエラーが発生してしまいます。
発生している問題・エラーメッセージ
flutter pub run flutter_native_splash:createを入力すると以下のエラーが発生します。
[Android] Creating splash images Unhandled exception: NoSuchMethodError: The getter 'width' was called on null. Receiver: null Tried calling: width #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5) #1 _saveImage (package:flutter_native_splash/android.dart:75:18) #2 _applyImage (package:flutter_native_splash/android.dart:65:5) #3 createSplash (package:flutter_native_splash/android.dart:29:11) #4 createSplash (package:flutter_native_splash/flutter_native_splash.dart:20:11) <asynchronous suspension> #5 main (file:///C:/Users/xxxxx/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_native_splash-0.1.9/bin/create.dart:5:3) #6 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32) #7 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12) pub finished with exit code 255
試したこと
pub getをしてみたり、何度かコマンドを打ちなおしてみましたが、解決出来ないです。
補足情報(FW/ツールのバージョンなど)
Windows10
Android Studio
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。