java native debug_React-Native ':app:compileDebugJavaWithJavac'错误(Android Studio)

最近潜入React-Native的世界并立即陷入困境 . 从Udemy购买了一门名为The Complete React Native and Redux Course的课程,并试图编译我的第一个应用程序 .

我已经尝试了很多不同的解决方案,并经历了各种不同的错误,所以它到了我必须制作我的第一个stackoverflow帖子的地步 . 要在下面发布一堆我当前的设置以及我收到的错误 .

My Configuations

JAVA_HOME = C:\ Program Files \ Java \ jdk1.8.0_151

ANDROID_HOME = C:\ Users \ Danny \ AppData \ Local \ Android \ sdk

PATH = C:\ Users \ Danny \ AppData \ Roaming \ cabal \ bin; C:\ Users \ Danny \ AppData \ Roaming \ npm;

React Native Properties

Android Studio Properties

gradle-wrapper.properties

#Mon Dec 11 21:41:46 EST 2017

distributionBase=GRADLE_USER_HOME

distributionPath=wrapper/dists

zipStoreBase=GRADLE_USER_HOME

zipStorePath=wrapper/dists

distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-rc-2-

all.zip

build.gradle(模块:app)

android {

compileSdkVersion 23

buildToolsVersion '25.0.1'

defaultConfig {

applicationId "com.albums"

minSdkVersion 16

targetSdkVersion 23

versionCode 1

versionName "1.0"

ndk {

abiFilters "armeabi-v7a", "x86"

}

}

build.gradle(项目:专辑)

buildscript {

repositories {

jcenter()

}

dependencies {

classpath 'com.android.tools.build:gradle:2.3.3'

// NOTE: Do not place your application dependencies here; they belong

// in the individual module build.gradle files

}

}

allprojects {

repositories {

mavenLocal()

jcenter()

}

}

在使用教师的过程中,我说要使用NEXUS 5 API 23,这有助于帮助 . 在Android Studio中构建Gradle没有错误 .

感谢您的帮助

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值