cocoscreator鏋勫缓鐨刟ndroid宸ョ▼鎶ラ敊
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cocoscreator鏋勫缓鐨刟ndroid宸ョ▼鎶ラ敊相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/erro' title='erro'>erro 娣诲姞 var debug release xxx 灏辨槸 ase variant
cocoscreator鏋勫缓鐨勫畨鍗撻」鐩墦鍖呮姤閿欙細Error:The module 鈥榣ibcocos2dx鈥?is an android project without build variants, and cannot be built. Please fix the module鈥檚 configuration in the build.gradle file and sync the project again.
Error:The module 鈥榵xx鈥?is an Android project without build variants, and cannot be built. Please fix the module鈥檚 configuration in the build.gradle file and sync the project again.
鎴戠殑鐜閮芥槸ok鐨勶紝java鐜瑁呬簡锛宯dk閰嶇疆浜嗭紝android sdk涔熼厤缃簡锛屼笉鐭ラ亾杩欎釜鎶ラ敊浠€涔堝師鍥犮€?/p>
缃戜笂鎵句簡涓€鍦堬紝鍩烘湰涓婇兘鏄gradle鐗堟湰涓嶅锛屾垨鑰呮病鏈変笅杞戒笅鏉ワ紝鎴栬€呮槸鎵嬪姩娣诲姞debug/release configuration銆傜収鐫€缃戜笂鐨勬柟娉曢兘璇曚簡涓€閬嶏紝渚濈劧鎶ラ敊銆?/p>
鏈€鍚庯紝鍗氫富鍙戠幇杩欎釜鏄痯roject structure鐨勯敊璇紝灏卞湪project structure闈㈡澘閲岄潰鍘绘壘鍘熷洜锛屾灉鐒跺彂鐜癗DK娌℃湁閰嶇疆銆傜偣鍑讳笅杞斤紝瀹屾垚涔嬪悗寮€濮嬭嚜鍔ㄥ悓姝ワ紝涓€鍒囧畬浜嬩箣鍚庝笘鐣屾竻鍑€浜嗭紝涓嶆姤閿欎簡銆?/p>
鎵€浠ュ氨鏄疦DK鐨勯攨锛屾垜鍦╟ocoscreator閲岄潰閰嶇疆浜哊DK鐨勶紝鏃㈢劧鏃犵敤涓轰粈涔堣鎴戦厤缃€?/p>
以上是关于cocoscreator鏋勫缓鐨刟ndroid宸ョ▼鎶ラ敊的主要内容,如果未能解决你的问题,请参考以下文章