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

运行不起来,错误提示如下 #2

Open
ysysdzz opened this issue Jul 20, 2023 · 2 comments
Open

运行不起来,错误提示如下 #2

ysysdzz opened this issue Jul 20, 2023 · 2 comments

Comments

@ysysdzz
Copy link

ysysdzz commented Jul 20, 2023

安卓端
Xnip2023-07-20_20-30-10

IOS端
Xnip2023-07-20_20-39-28
Xnip2023-07-20_20-38-00
Xnip2023-07-20_20-38-08

@cqzongjian
Copy link

可以正常运行哦
flutter sdk 3.13.1
需要:

  1. 将 lib/app/modules/search/controllers/search_controller.dart 中 class SearchController 换个名字,SearchController 和 flutter/packages/flutter/lib/src/material/search_anchor.dart 中的 SearchController class 冲突;
  2. 在 DoXiaoMiMall/ios/Runner/Info.plist 中加入:
   <key>FLTEnableImpeller</key>
   <false/>

否则ios无法正常加载图片

@shellus
Copy link

shellus commented Jan 10, 2024

  1. 将 lib/app/modules/search/controllers/search_controller.dart 中 class SearchController 改为 class MySearchController
    同时修改下面两处为 MySearchController
lib/app/modules/search/views/search_view.dart:11
lib/app/modules/search/bindings/search_binding.dart:8

这将解决项目内类名和库名称重复的冲突

  1. 创建 android/key.properties 为 如下内容
keyAlias=1
keyPassword=1
storeFile=1
storePassword=1

这可以解决安卓编译的 gradle sync 报错
如果您之前的gradle已经失败,请先执行flutter clean以清除旧的build目录

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

3 participants