我在编译项目后出现了多次错误后将android studio升级到2.3但是当我尝试创建新项目时,没有任何反应没有错误,任何人都可以告诉我为什么会发生这种情况
idea.log:
2017-03-21 23:20:15,671 [ 728938] ERROR - pplication.impl
.LaterInvocator - Android Studio 2.3 Build #AI-162.3764568
2017-03-21 23:20:15,671 [ 728938] ERROR - pplication.impl.LaterInvocator
- JDK: 1.8.0_45
2017-03-21 23:20:15,671 [ 728938] ERROR - pplication.impl
.LaterInvocator - VM: Java HotSpot(TM) Server VM
2017-03-21 23:20:15,671 [ 728938] ERROR - pplication.impl.
LaterInvocator - Vendor: Oracle Corporation
2017-03-21 23:20:15,671 [ 728938] ERROR -
pplication.impl.LaterInvocator - OS: Windows 8
2017-03-21 23:20:15,671 [ 728938] ERROR - pplication.impl.
LaterInvocator - Last Action: ShowLog
2017-03-21 23:20:16,317 [ 729584] INFO - .diagnostic.
PerformanceWatcher - Pushing properties took 11ms; general
responsiveness: ok; EDT responsiveness: ok
2017-03-21 23:20:18,160 [ 731427] INFO - .diagnostic.
PerformanceWatcher - Indexable file iteration took 1843ms;
general responsiveness: ok; EDT responsiveness: ok
2017-03-21 23:22:42,925 [ 876192] WARN -
ctions.AndroidNewProjectAction - Unable to launch New Project Wizard
java.lang.IllegalStateException: Gradle plugin missing from the
offline Maven repo
at com.android.tools.idea.gradle.plugin.AndroidPluginGeneration.getLatestKnownVersion(AndroidPluginGeneration.java:213)
等等
答案 0 :(得分:1)
我通过下载卸载AS而不卸载SDK的所有软件包解决了这个错误,同时安装AS时保持互联网连接关闭,希望它也帮助其他人,并且免除了我遇到的很多麻烦!
答案 1 :(得分:0)
我刚遇到这个错误。新项目向导后没有任何反应。我发现这是项目模板文件中的一个错误。 要解决此问题,
{Android Studio installation location}
/ plugins / android / lib / templates / gradle-projects / NewAndroidModule / root / build.gradle.ftl 希望它有助于某人