-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing imports from MainActivity #7
Comments
Those two imports are added to MainActivity when you run the package. The package looks for the line Did you modify your class signature? If so, can you post the line? Thanks for the report. |
Oh yah, I did: public class MainActivity extends FlutterFragmentActivity { I have totes forgot why I had to extend the fragment activity, but it's necessary for another package I am using. On the plus side, your native splashscreen works fine with flutter fragment activity. |
Fixed in v0.1.7 (194591b):
The package looks now only for |
I had the same problem with missing imports. This is line for the class: |
I did all the steps from the wee tutorial on pub.dev / readme.md but I got some big complaints from gradle (building for android obviously) that stopped the build. A tiny amount of googling later and I had to add two imports to MainActivity:
import android.view.ViewTreeObserver;
import android.view.WindowManager;
Shouldn't this have happened automatically? Is this some unique aspect of my build? I am doing some MultiDex shenanigans so I don't know if that has affected it. Sorry this bug report is absolute grabage in terms of detail, but I thought you should know.
The text was updated successfully, but these errors were encountered: