いつもお世話になっております。
git clone
してきたプロジェクトをGenymotionで動かしたいと考えているのですが、ビルド中にエラーに引っかかってしまい、先に進むことができません。
開発環境:
Mac OS
react native 0.55.3
Java 8
> Configure project :app The CompileOptions.bootClasspath property has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the CompileOptions.bootstrapClasspath property instead. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':app'. > Failed to notify project evaluation listener. > com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V
###ソースコード
build.gradle
Java
1// Top-level build file where you can add configuration options common to all sub-projects/modules. 2 3buildscript { 4 repositories { 5 jcenter() 6 maven { 7 url 'https://maven.fabric.io/public' 8 } 9 } 10 dependencies { 11 classpath 'com.android.tools.build:gradle:2.2.+' 12 classpath 'com.google.gms:google-services:3.1.2' 13 classpath 'io.fabric.tools:gradle:1.24.4' 14 // NOTE: Do not place your application dependencies here; they belong 15 // in the individual module build.gradle files 16 } 17} 18 19allprojects { 20 repositories { 21 mavenLocal() 22 jcenter() 23 maven { 24 // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 25 url "$rootDir/../node_modules/react-native/android" 26 } 27 maven { 28 url 'https://maven.google.com' 29 } 30 configurations.all { 31 resolutionStrategy { 32 force 'com.facebook.android:facebook-android-sdk:4.28.0' 33 } 34 } 35 } 36}
android/build.gradle
JavaScript
1apply plugin: "com.android.application" 2 3import com.android.build.OutputFile 4 5dependencies { 6 compile 'com.google.android.gms:play-services-base:11.8.0' 7 compile 'com.google.android.gms:play-services-maps:11.8.0' 8 compile 'com.google.android.gms:play-services-auth:11.8.0' 9 10 // RNFirebase required dependencies 11 compile "com.google.firebase:firebase-core:11.8.0" 12 compile "com.google.android.gms:play-services-base:11.8.0" 13 14 // RNFirebase optional dependencies 15 compile "com.google.firebase:firebase-auth:11.8.0" 16 compile "com.google.firebase:firebase-database:11.8.0" 17 compile "com.google.firebase:firebase-firestore:11.8.0" 18 19 compile fileTree(dir: "libs", include: ["*.jar"]) 20 compile "com.android.support:appcompat-v7:26.+" 21 compile "com.facebook.react:react-native:+" // From node_modules 22 compile "com.google.firebase:firebase-storage:11.8.0" 23 compile "com.google.firebase:firebase-messaging:11.8.0" 24} 25 26// Run this once to be able to run the application with BUCK 27// puts all compile dependencies into folder libs for BUCK to use 28task copyDownloadableDepsToLibs(type: Copy) { 29 from configurations.compile 30 into 'libs' 31} 32 33apply plugin: 'com.google.gms.google-services'
最初はJava 10でやっていたのですが、8じゃなきゃ動かないというStackOverflowの記事をみて切り替えてみたのですが、やはり同じエラーが生じてしまいました。汗
ご知恵のほど、拝借させていただければと思います。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。