當我們從 Github 上下載一份 Android 源碼,可能遇到的問題是,我們遇到 gradle 的一個提示:AndroidStudio Frameworks detected: Android framework is detected in the project Configure。
遇到這種情況,就要去檢查下載的這個包的結構。
打開菜單欄,File —> open 就會定位到當前打開的包,如圖中的 android-animate-RichEditor,這個包的結構是不是很奇怪啊。
倒是它的下層文件夾 RichEditor 看着纔是正常的 Android Studio 文件包,打開就能正常運行了。
綜上所述,當出現 AndroidStudio Frameworks detected: Android framework is detected in the project Configure 這個提示的時候,不需要去點擊 configure ,只要去 File—>open 裏面去打開下層文件夾中正常的 Android Studio 包。