Questions tagged «android-studio-import»


4
找不到方法android()作为参数
我一直在尝试将项目导入Android Studio,这就是我遇到的问题,Stack Overflow也有类似的问题,但是它没有为我的特定错误提供解决方案。 这是我的错误日志: C:\<some location>\build.gradle Error:(24, 1) A problem occurred evaluating root project '<project name>'. > Could not find method android() for arguments [build_4fli1jm76ubcnxesnhqnhie47$_run_closure3@6e71db85] on root project '<project name>'. Information:BUILD FAILED Gradle同步消息是: 错误:(24,0)未找到Gradle DSL方法:“ android()”可能的原因:项目“ PoojaPeople”可能正在使用不包含该方法的Gradle版本。摇篮设置生成文件可能缺少Gradle插件。应用Gradle插件 我不太确定此方法的确切android()位置。如果它是位于Application的build.gradle文件中的文件,我仍然不完全知道从这里开始。任何帮助表示赞赏。 我的build.gradle是 buildscript { repositories { maven { url "http://dl.bintray.com/populov/maven" } mavenCentral() } …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.