Я использовал Java 11. Я только что обновился до 17, пытаясь решить проблему. проблема.
запуск eas build --platform android --profile Production --clear-cache --build-logger-level=debug
выходные данные :
Код: Выделить всё
Running 'gradlew :app:bundleRelease' in /home/expo/workingdir/build/android
Downloading https://services.gradle.org/distributions/gradle-7.3.3-all.zip
10%.
20%.
30%.
40%.
50%.
60%
70%.
80%.
90%.
100%
Welcome to Gradle 7.3.3!
Here are the highlights of this release:
- Easily declare new test suites in Java projects
- Support for Java 17
- Support for Scala 3
For more details see https://docs.gradle.org/7.3.3/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.3.3/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build
FAILURE: Build failed with an exception.
* Where:
Script '/home/expo/workingdir/build/node_modules/expo/scripts/autolinking.gradle' line: 4
* What went wrong:
A problem occurred evaluating script.
> Could not find method exec() for arguments [autolinking_9szxo5may2zrgnhpqcnrso9ei$_run_closure1@58dbf0e1] on object of type org.gradle.api.internal.provider.DefaultProviderFactory_Decorated.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with
--info or --debug option to get more log output.
> Run with
--scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Код: Выделить всё
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
namespace 'com.truestreetcarclub.tsccmemberapp' // Add this line
compileSdkVersion rootProject.ext.compileSdkVersion
buildFeatures {
buildConfig true // Add this line to enable buildConfig feature
}
defaultConfig {
applicationId "com.truestreetcarclub.tsccmemberapp" // Set your package name here
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.facebook.react:react-native:+'
}
Я ходил по кругу с этой автосвязкой. Я бесчисленное количество раз удалял node_modules и переустанавливал, очищал кеш, чтобы не было глупостей, но безуспешно.
Подробнее здесь: https://stackoverflow.com/questions/787 ... nnot-build
Мобильная версия