我正在尝试用react-native构建我的第一个应用程序.
我正在关注这两个教程:
我确信我安装了第二个链接的所有要求,但是当我尝试运行我的应用程序时react-native run-android,我收到以下错误:
我在运行genymotion时执行了这个命令.
这就是我在Android SDK中安装的所有内容:
我尝试安装Android构建工具23.0.1,但是我收到此错误:
我该怎么办?
是否可以使用Gradle为Android项目生成Eclipse和Intellij项目文件?
在maven我们会做mvn eclipse:eclipse,在PlayFramework我们会这样做play eclipsify.Gradle是否为Android项目提供此功能?
我已经安装了摇篮(1.6)和Android SDK管理器(22.0.1)解释这里
这是我的build.gradle文件:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.0'
}
}
apply plugin: 'android'
apply plugin: 'eclipse'
sourceCompatibility = 1.7
version = '1.0.2'
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}
android {
buildToolsVersion "17"
compileSdkVersion 8
defaultConfig {
versionCode 1
versionName "1.0"
minSdkVersion 7
targetSdkVersion 8
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src'] …Run Code Online (Sandbox Code Playgroud) 我今天刚刚安装了Android - studio.首先,我必须为此IDE安装jdk7.
在那之后我才能启动IDE.
现在,当我尝试创建新项目时,只会出现错误,如下图所示.

任何人都可以帮助我.
我身边缺少什么?
我曾经使用Android Built-Tools 17来构建项目,现在我已经更新到18.0的工具,现在我改变了build.gradle:
android {
compileSdkVersion 18
buildToolsVersion "18.0.1"
}
Run Code Online (Sandbox Code Playgroud)
当我运行它时,它是错误的,Gradle:执行失败的任务':HandyHis:compileDebugAidl'.
找不到Build Tools修订版18.0.0
我该怎么办?
我可以使用android插件构建一个gradle项目.我想知道我们是否可以生成一个有效的eclipse android项目?我在下面添加了
apply plugin: 'android'
apply plugin: 'eclipse'
Run Code Online (Sandbox Code Playgroud)
当我说:gradle eclipse我得到
E:\proj\Platform2.0\mobile\Android\Common>gradle --build-file adt_build.gradle eclipse
The TaskContainer.add() method has been deprecated and is scheduled to be removed in
Gradle 2.0. Please use the cr:eclipseClasspath
:eclipseJdt
:eclipseProject
:eclipse
BUILD SUCCESSFUL
Run Code Online (Sandbox Code Playgroud)
但是当我在eclipse中导入生成的项目时...它确实有gradle从依赖项导入的jar文件.
有任何想法吗?
我正在尝试使用build.gradle文件导入基于Eclipse的Android项目.我收到以下消息:"找不到Build Tools版本18.0.0".但是,根据Android SDK Manager,我安装了Android SDK Build-tools 18.0.1.
我正在64位Windows 7机器上做这一切,如果这是相关的.
我该如何解决?
更新:我实际上今天早上只更新了Build-tools 18.0.1.然后我注意到,在Android Studio中创建一个新项目时,它不允许我使用Android 4.3创建项目(4.2.2是最新的允许版本).我尝试将我的项目的目标版本删除到Android 4.2.2,并重新导出它.现在Android Studio抱怨在我尝试导入这个项目时无法找到Build-tools 18.0.1.