簡體   English   中英

Android studio - 導入項目,運行/調試配置中沒有模塊

[英]Android studio - Imported project, no modules in run/debug configuration

我將此項目導入 android 工作室,運行/調試配置中沒有模塊,所以我不能在模擬器中進行項目。 它說 window 中未指定模塊。 它還在底部顯示“gradle sync failed”。 我上傳了屏幕截圖,所以你可以看到。

有人能幫忙嗎?

模塊

Gradle_Sync_Fail

所以我想答案有點晚了……但我一直在努力解決同樣的問題,並且一直在尋找答案。 嘗試了很多不同的東西,直到我在https://stackoverflow.com/questions/29087882/android-studio-run-debug-configuration-error-module-not-specified中看到 Pavel Poley 的解決方案之前,沒有什么對我有用

For me the project's API target specified in the build.gradle(:app) was 29 which is for android 10. But Android studio 4.2 by default only has API 30 which is for android 11.

To fix this go to tools->sdk-manager (or just click on the icon with a box and a blue down arrow in the tool bar) and install the sdk for the API target specified in your gradle file.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM