简体   繁体   English

Flutter 应用程序无法与 android 工作室一起运行任何人都可以帮助我吗?

[英]Flutter app not run with android studio can anyone help me out?

I have a Flutter app and when I try to run it, I see an error.我有一个 Flutter 应用程序,当我尝试运行它时,我看到一个错误。 I mention belove but app is running when I use Xcode.我提到了 belove,但是当我使用 Xcode 时,应用程序正在运行。

In android studio:在 android 工作室:

Launching lib/main.dart on iPhone 11 in debug mode...
Running pod install...

CocoaPods' output: CocoaPods 的 output:

      CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update

Error output from CocoaPods:来自 CocoaPods 的错误 output:

/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
        WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
        Consider adding the following to ~/.profile:
        export LANG=en_US.UTF-8
       /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `unicode_normalize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `installation_root'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:226:in `podfile_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:105:in `markdown_podfile'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:30:in `report'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:66:in `report_error'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:396:in `handle_exception'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:337:in `rescue in run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:324:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `<main>'
    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/unicode_normalize/normalize.rb:141:in `normalize': Unicode Normalization not appropriate for ASCII-8BIT (Encoding::CompatibilityError)
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `unicode_normalize'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:166:in `installation_root'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:226:in `podfile_path'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/config.rb:205:in `podfile'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:46:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52:in `run'
        from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55:in `<top (required)>'
        from /usr/local/bin/pod:23:in `load'
        from /usr/local/bin/pod:23:in `<main>'

Error running pod install
Error launching application on iPhone 11.

this error come because cocoapod new version not suport utf-8 and flutter widgets use that so you have to export following lines to your terminal and its work出现此错误是因为 cocoapod 新版本不支持 utf-8 和 flutter 小部件使用它,因此您必须将以下行导出到终端及其工作

Export this line and its work导出这条线及其工作

export LC_ALL=en_US.UTF-8

Add the following code in your bash profile if you're using bash.如果您使用 bash,请在您的 bash 配置文件中添加以下代码。

export LANG=en_US.UTF-8

The bash profile is might be bash 配置文件可能是

~/.bash_profile or ~/.bashrc

Also if you're using zsh then the profile name will be.此外,如果您使用的是 zsh,那么配置文件名称将是。

~/.zshrc

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 谁能帮我拆卸EXPO应用程序 - Can anyone help me to detach expo app 从 android 工作室在 iOS 上运行 flutter 应用程序 - Run flutter app on iOS from android studio 谁能帮助我知道我的应用程序是否可以将其带入App Store? - Can anyone help me know if my app can get it into the App Store? 谁能帮我解决这个xcode问题? - Can anyone help me with this xcode issue? 我想快速制作一个翻译应用程序。 谁能帮我? - I want to make a translation app in swift. Can anyone help me? 谁能帮助我使用 swift 实现具有不同半径和角度的 coxcomb 饼图? 我想实现饼图 - can anyone help me out for implementation of coxcomb pie chart with different radii and angles using swift? i want to implement pie chart 在创建tableView的Custom CellView之后,我仍然没有获得多列视图。 谁能帮我吗? - After creating a Custom CellView of a tableView, still i am not getting the multiple column view. Can anyone help me out? 谁能帮我这个? 我无法理解这个 - can anyone help me with this ? I can't understand this 谁能帮助我设置Salesforce Mobile SDK for iOS? - Can anyone help me setting up the Salesforce Mobile SDK for iOS? 即使我的唱机处于横向,我的视频/照片应用程序也会以纵向模式捕获照片/视频。 谁能帮我解决这个问题? - My Video/Photo App captures the photo/video in portrait mode even if I have the phono in landscape. Can anyone help me fix that?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM