blackHawk
blackHawk

Reputation: 6307

Android studio: Unable to create new project

I upgraded android studio to 2.3 after number of errors I got to compile project but when i try to create new project, nothing happens no error, could anyone tell me why this happening

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)

and so on

Upvotes: 0

Views: 534

Answers (2)

user3744384_
user3744384_

Reputation: 337

I've just encountered this bug. After new project wizard nothing happened. I discovered that it was a bug in the project template file. To fix this issue,

  1. Copy the content of this file
  2. Paste it into {Android Studio installation location}/plugins/android/lib/templates/gradle-projects/NewAndroidModule/root/build.gradle.ftl
  3. Restart Android Studio if it's open

Hope it helps someone

Upvotes: 0

blackHawk
blackHawk

Reputation: 6307

I solved this error by downloading all the packages also uninstalling AS without uninstalling SDK, also when installing AS keep the internet connection off, hope it help others too, and save from a lot of trouble i faced!

Upvotes: 1

Related Questions