admin管理员组文章数量:1349174
I've been working on a Flutter app and it was working on Android and Web. I added support for Firebase and got that working on the web but now the Android build doesn't work. I get the following errors:
e: file:///<project_root>/android/app/src/main/kotlin/productions/moo/tarot_tutor/MainActivity.kt:3:11 Unresolved reference 'flutter'.
e: file:///<project_root>/android/app/src/main/kotlin/productions/moo/tarot_tutor/MainActivity.kt:5:21 Unresolved reference 'FlutterActivity'.
I added the gradle entries that I was told to in the Firebase Console and I updated Gradle from 8.9.0 to 8.9.1 but I wouldn't think that would cause this issue. I've tried going through various iterations of invalidating caches, flutter clean
, gradle syncs, etc. but nothing is changing.
I've been working on a Flutter app and it was working on Android and Web. I added support for Firebase and got that working on the web but now the Android build doesn't work. I get the following errors:
e: file:///<project_root>/android/app/src/main/kotlin/productions/moo/tarot_tutor/MainActivity.kt:3:11 Unresolved reference 'flutter'.
e: file:///<project_root>/android/app/src/main/kotlin/productions/moo/tarot_tutor/MainActivity.kt:5:21 Unresolved reference 'FlutterActivity'.
I added the gradle entries that I was told to in the Firebase Console and I updated Gradle from 8.9.0 to 8.9.1 but I wouldn't think that would cause this issue. I've tried going through various iterations of invalidating caches, flutter clean
, gradle syncs, etc. but nothing is changing.
1 Answer
Reset to default 0It turns out this was caused by Firebase wanting a newer NDK version than what was in my Flutter SDK defaults.
本文标签: flutter and FlutterActivity are unresolved references after having just workedStack Overflow
版权声明:本文标题:flutter and FlutterActivity are unresolved references after having just worked - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743852231a2550218.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论