私はcocos2dxサンプルプログラムを実行しようとしましたが、次のエラーが表示されますパスまたは設定に問題がありますか?私はあなたから聞くのが大好きです!アンドロイドスタジオからcocos2dxサンプルゲームを実行できません
Mic-no-MacBook-Pro:CocoFolder mic$ cocos run -s ~/Desktop/CocoFolder/NewGame -p android --android-studio
/Users/mic/.bash_profile: line 8: export: `PATH:/Users/mic/Downloads/adt-bundle-mac-x86_64-20140702/sdk:/usr/local/lib/node_modules/ant/ant/bin:/usr/local/lib/node_modules/ant/ant:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/mic/Desktop/CocoFolder/cocos2d-x-3.14.1/tools/cocos2d-console/bin:/Users/mic/Desktop/CocoFolder/android-ndk-r14b:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home:/usr/local/lib/node_modules/ant/ant:/usr/local/lib/node_modules/ant/ant/bin': not a valid identifier
/Users/mic/.bash_profile: line 11: export: `PATH:/Users/mic/Downloads/adt-bundle-mac-x86_64-20140702/sdk:/usr/local/lib/node_modules/ant/ant/bin:/usr/local/lib/node_modules/ant/ant:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/mic/Desktop/CocoFolder/cocos2d-x-3.14.1/tools/cocos2d-console/bin:/Users/mic/Desktop/CocoFolder/android-ndk-r14b:/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home:/usr/local/lib/node_modules/ant/ant:/usr/local/lib/node_modules/ant/ant/bin': not a valid identifier
Building mode: debug
Using Android Studio project : /Users/mic/Desktop/CocoFolder/NewGame/proj.android-studio
running: '/Users/mic/Downloads/adt-bundle-mac-x86_64-20140702/sdk/tools/android update project -t android-13 -p /Users/mic/Desktop/CocoFolder/NewGame/proj.android-studio/app'
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
Invalid or unsupported command "update project -t android-13 -p /Users/mic/Desktop/CocoFolder/NewGame/proj.android-studio/app"
それはまたandroid.batユーティリティによって異なりますので、これはbashのプロファイル内
export ANT_HOME=/usr/local/lib/node_modules/ant/ant
export PATH=$ANT_HOME:$PATH
export ANT_ROOT=/usr/local/lib/node_modules/ant/ant/bin
export PATH=$ANT_ROOT:$PATH
export ANDROID_HOME=/Users/mic/Downloads/adt-bundle-mac-x86_64-20140702/sdk
export PATH:$ANDROID_HOME:$PATH
export ANDROID_SDK_ROOT=/Users/mic/Downloads/adt-bundle-mac-x86_64-20140702/sdk
export PATH:$ANDROID_SDK_ROOT:$PATH
export ANT_HOME=/usr/local/lib/node_modules/ant/ant
export PATH=$ANT_HOME:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
export PATH=$JAVA_HOME:$PATH
export NDK_ROOT=/Users/mic/Desktop/CocoFolder/android-ndk-r14b
export PATH=$NDK_ROOT:$PATH
export COCOS2D_CONSOLE_ROOT=/Users/mic/Desktop/CocoFolder/cocos2d-x-3.14.1/tools/cocos2d-console/bin
export PATH=$COCOS2D_CONSOLE_ROOT:$PATH
あなたのソリューションは完璧でした!それは本当に働いた! – user3264924