溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

cocoscreator構(gòu)建的android工程報錯

發(fā)布時間:2020-06-04 20:21:06 來源:網(wǎng)絡(luò) 閱讀:586 作者:球球閃電 欄目:移動開發(fā)

cocoscreator構(gòu)建的安卓項目打包報錯:
Error:The module 'libcocos2dx' is an Android project without build variants, and cannot be built. Please fix the module’s configuration in the build.gradle file and sync the project again.
Error:The module 'xxx' is an Android project without build variants, and cannot be built. Please fix the module’s configuration in the build.gradle file and sync the project again.

我的環(huán)境都是ok的,java環(huán)境裝了,ndk配置了,android sdk也配置了,不知道這個報錯什么原因。

網(wǎng)上找了一圈,基本上都是說gradle版本不對,或者沒有下載下來,或者是手動添加debug/release configuration。照著網(wǎng)上的方法都試了一遍,依然報錯。

最后,博主發(fā)現(xiàn)這個是project structure的錯誤,就在project structure面板里面去找原因,果然發(fā)現(xiàn)NDK沒有配置。點擊下載,完成之后開始自動同步,一切完事之后世界清凈了,不報錯了。

所以就是NDK的鍋,我在cocoscreator里面配置了NDK的,既然無用為什么讓我配置。

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI