[英]Setting up Android Studio but how?
I am pretty new to the android programming. 我是android编程的新手。 I had programmed a test app 1 year ago on eclipse.
我1年前在Eclipse上编写了一个测试应用程序。 Now there is android studio and I wanted to try this because it looked nice and useful.
现在有android studio,我想尝试一下,因为它看起来不错而且有用。
After installing, I ran into some problems even if everybody said its so easy to do this... It wasn't for me until now! 安装后,即使每个人都说这样做很容易,我还是遇到了一些问题...直到现在才适合我! but that's my personal luck, i always run into some weird issues :)
但这是我个人的运气,我总是遇到一些奇怪的问题:)
What I've done until now: 到目前为止,我所做的是:
(jdk-7u51-windows-i586)
and installed it (jdk-7u51-windows-i586)
C:\\Program Files\\Java\\jdk1.7.0_51
C:\\Program Files\\Java\\jdk1.7.0_51
First running AS
said I'm using the wrong supportversion... Didn't know what exactly it was then I tried to debug my error with gradlew clean build
in console. 第一次运行
AS
我说我使用了错误的supportversion ...不知道它到底是什么,然后我尝试使用控制台中的gradlew clean build
调试错误。
tried to change 试图改变
dependencies {
compile 'com.android.support:gridlayout-v7:19.0.1'
compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:support-v4:18.0.0' <===
compile fileTree(dir: 'libs', include: ['*.jar'])
}
into 进入
dependencies {
compile 'com.android.support:gridlayout-v7:19.0.1'
compile 'com.android.support:appcompat-v7:+'
compile 'com.android.support:support-v4:19.0.1' <===
compile fileTree(dir: 'libs', include: ['*.jar'])
}
which seems to solve my problems until there... 这似乎解决了我的问题,直到那里...
but is still have this error: 但是仍然有此错误:
Gradle project sync failed.
Basic functionality (e.g. editing, debugging) will not work properly.
and 和
Gradle 'ProjectName' project refresh failed:
A fatal exception has occurred. Program will exit.
I tried THIS with no results 我尝试了此 ,但没有结果
Can someone help me with that? 有人可以帮我吗?
Additional informations: 附加信息:
Google Reposetory 6
and Android Support Library 19.0.1
are installed. 已安装
Google Reposetory 6
和Android Support Library 19.0.1
。
Terminal (ProjectFolder): gradlew clean build
终端(ProjectFolder):
gradlew clean build
Results: 结果:
Ran lint on variant release: 12 issues found
BUILD SUCCESSFUL
Gradle Version: gradle-1.10-all
Gradle版本:
gradle-1.10-all
如果要使用自动gradle魔术,则必须通过SDK管理器(AS寡妇顶部的图标-带有向下箭头的android)下载第一个Google存储库和Android支持存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.