Skip to content
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

Type mismatch: inferred type is MainActivity but FlutterEngine was expected #10

Closed
varadgauthankar opened this issue Aug 19, 2020 · 1 comment

Comments

@varadgauthankar
Copy link

I tried to implement your wallpaper apply method, but it fails, even tried cloning the reWall but the same error.

console message:

e: D:\projects\amazewall_wallpapers\android\app\src\main\kotlin\com\example\amazewall_wallpapers\MainActivity.kt: (24, 44): Type mismatch: inferred type is MainActivity but FlutterEngine was expected

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 30s
Running Gradle task 'assembleDebug'...                                  
Running Gradle task 'assembleDebug'... Done                        31.5s
Exception: Gradle task assembleDebug failed with exit code 1
@bimsina
Copy link
Owner

bimsina commented Nov 1, 2020

@varadgauthankar Can you add in the information from flutter doctor?

@bimsina bimsina closed this as completed Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants