【发布时间】:2015-10-22 08:09:11
【问题描述】:
我正在关注this tutorial,了解如何使用 Android Studio 创建 Android 应用程序。最后,用户打开文件“build.gradle”,它看起来与我所拥有的完全不同:
// Top-level build file where you can add configuration options common to
all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
也许这不是很重要?还是视频使用的是旧版本的 AndroidStudio/SDK/gradle/whatever?
【问题讨论】:
-
尝试打开另一个 build.gradle 文件。
-
是使用旧版本AndroidStudio的视频正确,实际上是非常旧版本。自 2014 年 5 月 30 日起,android studio 从 beta 版本 0.8 或其他版本升级为完全可操作的 1.4
-
啊,在别处找到的,谢谢。为android开发东西真的非常复杂。我想创建第一个应用程序需要几个月的时间......
-
Android 教育资源的半衰期大约是一年,恕我直言。 IOW,某些资源的价值在其上次更新后一年减半,价值其原始两年后的 25%,等等。该特定教程此时已有约 16 个月的历史,这意味着您需要花一点时间盐和那里展示的一些东西。
-
“为 android 开发一些东西真的非常复杂。” - 它只是你想要的复杂,通过几天或几周的基本培训,你已经可以创建一些非常酷的应用程序