رونمایی از پخته‌ترین و کاربردی‌ترین محصولات آموزشی سون‌لرن با کلی آفرهای ویژه🔥
۰ ثانیه
۰ دقیقه
۰ ساعت
۴ پریسا مسلمی
عدم پذیرش نام
یلدا محصلی حل شده توسط یلدا محصلی

سلام وقتی میخوام نام پروژه را set کنم خطا میده دستوری که داخل ویدیو بود که اصلا داخل پکیج نیست ولی خودم هم که زدم باز خطا داد 

این دستور داخل پکیج بود که باز هم خطا میده:

rename setAppName --targets ios,android --value "YourAppName"

متن خطا چی هست؟ 

یلدا محصلی ۲۱ تیر ۱۴۰۳، ۲۳:۰۵
rename : The term 'rename' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a 
path was included, verify that the path is correct and try again.
At line:1 char:1
+ rename setAppName --targets ios,android --value "YourAppName"
+ ~~~~~~
   + CategoryInfo          : ObjectNotFound: (rename:String) [], CommandNotFoundException
   + FullyQualifiedErrorId : CommandNotFoundException
   این خطا را میده وقتی باید چیکارکنم؟
پریسا مسلمی ۲۲ تیر ۱۴۰۳، ۱۲:۲۱

#0   main (file:///C:/Users/Parisa/AppData/Local/Pub/Cache/hosted/pub.dev/rename-3.0.2/bin/rename.dart:31:12)
│ #1  
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ ⛔ Could not find an option named "appname".
│ ⛔ 
│ ⛔ Usage: rename [arguments]
│ ⛔ 
│ ⛔ Global options:
│ ⛔ -h, --help       Print this usage information.
│ ⛔ -v, --version    
│ ⛔ 
│ ⛔ Available commands:
│ ⛔   getAppName    Get app names for the targeted platforms
│ ⛔   getBundleId   Get bundleId identifiers for the targeted platforms
│ ⛔   setAppName    Set app name for the targeted platforms
│ ⛔   setBundleId   Set bundleId identifier for the targeted platforms
│ ⛔ 
│ ⛔ Run "rename help " for more information about a command.

واین خطا هم برای وقتی هست که از دستوری که داخل ویدیو بود نوشتم این خطا را میده 

منظورم این دستور هست:

flutter pub global run rename --appname "pari"

پریسا مسلمی ۲۲ تیر ۱۴۰۳، ۱۲:۵۵

به این علت هست که دستور به path سیستم اضافه نشده. طبق قسمت آخر داکیومنت پکیج از این دستور میتونید استفاده کنید:

 

flutter pub run rename setAppName --targets ios,android --value "app-name"    
بهترین پاسخ
یلدا محصلی ۲۲ تیر ۱۴۰۳، ۱۴:۵۱