Ah! Gradleandroid 2.1 builds a solution with an error in android.
It took me a long time to get rid of it. The result is that the gradle version is incorrect.
Http://tools.android.com/tech-docs/new-build-system/version-compatibility
Change
buildscript { repositories { //mavenCentral() maven { url "http://maven.oschina.net/content/groups/public/" } } dependencies { classpath 'com.android.tools.build:gradle:0.13+' }}
Changed to 0.13 + sister's
| Android Studio |
Android Gradle Plugin |
Gradle |
| 0.9. + (still in development) |
0.14 + (still in development) |
2.1 |
| 0.8.11 + |
0.13 +, 0.12 + |
2.1 (for plugin 0.13; for 0.12 use 1.10-1.12) |
| 0.8.0-0.8.10 |
0.12 + |
1.10-1.12 |
| 0.6.0, 0.6.1 + |
0.11 + |
1.10-1.12 |
| 0.5.8-0.5.9 |
0.9, 0.10 |
1.10-1.12 (1.12 requires plugin 0.10) |
| 0.5.0-0.5.7 |
0.9 |
1.10, 1.11 |
| 0.4.3-0.4.6 |
0.7, 0.8 |
1.9, 1.10 (required for plugin 0.8) |
| 0.4.0-0.4.2 |
0.7 |
1.9 |
| 0.3.0-0.3.7 |
0.6 |
1.8 |
| 0.2.0-0.2.13 |
0.5 |
1.7
|
When Android Studio starts creating a project, Failed to import Gradle project: cocould not fetch model of type'
To install Andriod Support Repository,
If you have already installed android studio or reported an error, it is because the ANDROID_HOME settings are incorrect. It should be android-studio/sdk instead of android-studio.
Gook luck!
The project created by android studio remains in building gradle project info.
There is no development tool worse than it. With eclipse, why should google develop such a bad tool? The development is fine. Why should it be released before it is complete, if it is not perfect, it will be released. Why is it so bad after such a long release ?! The first time a project is created, it cannot be opened when the layout file is loaded. After the sdk is set, it will die. After the upgrade, a new project will be created, and the interface will be stuck. It turns out that there are so many predecessors who have encountered the same problem, the ridiculous studio ......