react-nativeのプロジェクトをビルドしたい1(Mac)(丸一日かかってできませんでした)
10:00
他の開発者さんから渡ってきたreact-nativeプロジェクトをAndroidでビルドしたい。
昨日の夜からもう10時間くらい悪戦苦闘しているので、記録を残していく。
yarn installまで無事(?)終わってる。
% npx react-native run-android
↓
Error: error:0308010C:digital envelope routines::unsupported
解決方法全部やってみる
% npm audit fix --force
効果なし。
% nvm use v16.15.1
% export NODE_OPTIONS=--openssl-legacy-provider
効果なし。別のエラーでた。
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
トップの解答で「Nodeダウングレードするな」って書かれてたので、nvm use v17.0.0に戻した。
その後またnpm audit fix --forceをやってnpx react-native run-androidやったら。。
Welcome to Metro v0.72.3
Fast - Scalable - Integrated
できてる。。。。???できてるのか。。。???
react-native一回も触ったことないから何が正しい動作なのかわからん。。
USBで繋げてるAndroidには何の反応もない。
% adb devices
↓
zsh: command not found: adb
adbを使えるようにする
% brew install android-platform-tools
↓
% adb devices
List of devices attached
RFCR71VND0N device
コンソールにdを入力してみた。
warn No apps connected. Sending "devMenu" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.
% adb reverse tcp:8081 tcp:8081
% npx react-native run-android
kikanai. Kondo wa sh\r: No such file or directly detekita.
% brew install dos2unix # Installs dos2unix Mac
% find . -type f -exec dos2unix {} \;
% npx react-native run-android
違うエラー
…
BUILD FAILED in 2s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
なんかFlutterで見たことあるエラーの形式になった!!!!!!
上の方にDeprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.っていうアラートが出てる。
koreyaru
Go to gradle/wrapper/gradle-wrapper.properties change the distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.0-bin.zipto the release that is needed (or higher).
Then run again cd android && ./gradlew bundleRelease
↓
Exception in thread "main" java.io.FileNotFoundException: https://downloads.gradle-dn.com/distributions/gradle-8.0.0-bin.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1993)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589)
at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
at org.gradle.wrapper.Download.downloadInternal(Download.java:66)
at org.gradle.wrapper.Download.download(Download.java:51)
at org.gradle.wrapper.Install$1.call(Install.java:62)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:69)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:107)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
aaaaaaaaaaaa…
Gradle 8.0 nante nai…
ずっとこんなワーニングが出てる
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
% ./gradlew bundleRelease --warning-mode all
> Configure project :
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.3.1/userguide/upgrading_version_6.html#jcenter_deprecation
at build_7qe0yn1tr3gmu501g8rpr8qfy$_run_closure1$_closure3.doCall(/Users/name/Desktop/name/android/build.gradle:16)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
FAILURE: Build failed with an exception.
build.gradleからjcenter()を消した(2箇所あった)。
% ./gradlew bundleRelease --warning-mode all
FAILURE: Build failed with an exception.
Where:
Build file '/Users/name/Desktop/name/android/build.gradle' line: 42
What went wrong:
A problem occurred evaluating root project 'name'.
Cannot add task 'wrapper' as a task with that name already exists.
task wrapper(type: Wrapper) { → wrapper {
% ./gradlew bundleRelease --warning-mode all
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
gradle 7.4に変更
android.useDeprecatedNdk=trueがもう使えないようなので消した
% ./gradlew bundleRelease --warning-mode all
FAILURE: Build failed with an exception.
Where:
Build file '/Users/name/Desktop/name/android/app/build.gradle' line: 181
What went wrong:
A problem occurred evaluating project ':app'.
Could not find method compile() for arguments [project ':react-native-webview'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
compileはもう使えないらしいので、全てimplementationに置き換え
Could not get unknown property 'compile' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.
from configurations.compile → from configurations.implementation
再々再々再々。。トライ
% ./gradlew bundleRelease --warning-mode
No argument was provided for command-line option '--warning-mode'.
ずっと--warning-modeいらなかったぽい
% ./gradlew bundleRelease
A problem occurred evaluating project ':react-native-picker'.
Could not find method compile() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
mavenとやらを変更
maven { url 'https://maven.google.com' }
同じエラー。react-native-pickerが古いから?
一回yarn removeしてyarn add(yarn upgrade使えないんだけどなんでだ?)
Could not resolve all files for configuration ':app:classpath'.
Could not find any matches for gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.1, 0.99.99] as no versions of gradle.plugin.com.onesignal:onesignal-gradle-plugin are available.
Searched in the following locations:
- https://maven.google.com/gradle/plugin/com/onesignal/onesignal-gradle-plugin/maven-metadata.xml
Required by:
project :app
maven変更したの良くなかった?
mavenのurl元に戻したら、react-native-pickerのエラーに戻った。
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.
上の方にこんなエラー。
android.disableAutomaticComponentCreation=trueを追加した。
node_modules内のbuild.gradleにcompileが残ってた。implementationに変更した。
Could not determine the dependencies of task ':app:mergeReleaseNativeLibs'.
Could not resolve all dependencies for configuration ':app:releaseRuntimeClasspath'.
A problem occurred configuring project ':react-native-reanimated'.
SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/name/Desktop/name/android/local.properties'.
local.propertiesをプロジェクト直下からandroid直下に移動。
A problem occurred configuring project ':react-native-reanimated'.
> Configuration with name 'compile' not found.
dependenciesが全部古いから?
% yarn add --dev yarn-upgrade-all
% yarn yarn-upgrade-all
13:45
Could not find method provided() for arguments [com.facebook.react:react-native:+] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
provided -> compileOnly に変更
その後またcompile()見つからないよというエラーが出たのでimplementationに変更。
今度は
Plugin with id 'kotlin-android' not found.
build.gradleに追加
buildscript {
ext {
...
kotlinVersion = "1.3.72"
}
dependencies {
...
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
↓
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
root project 'name' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72
kotlinVersion = "1.5.20"に変更
No matching configuration of project :realm was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.0' but:
- None of the consumable configurations have attributes.
buildTypes {
release {
matchingFallbacks = ['release', 'debug']->追加
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
No matching configuration of project :realm was found. The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.ProductFlavor:RNN.reactNativeVersion' with value 'reactNative57_5', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.0' but:
- None of the consumable configurations have attributes.
gradleのバージョンを4.2.2に全部変更してみた
Could not find com.android.tools.build:gradle:4.2.2.
もう何やってるのかわからない
Expected org.gradle.api.artifacts.result.ResolvedDependencyResult but found org.gradle.api.internal.artifacts.result.DefaultUnresolvedDependencyResult
14:59
nvm use v18.0.0した。けど同じエラー。
解決されてないっぽい。他にも特に情報がない。
gradleのばーじょんを6.7にしてみた。
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 62
barsion modosita
一番上の回答を試したが、npm cache verifyで
npm ERR! EMFILE: too many open files, open '/Users/name/.npm/_cacache/index-v5/c3/0e/5a6f058529d0514477d205e299ae09e36766ac94971356155bb7a52a5abf'
とりあえずスキップ。
% npm start -- --reset-cache
までやって、エラーは出なかった。
npx react-native run-android
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
% react-native run-android
zsh: command not found: react-native
% npm install -g react-native-cli
% react-native run-android
Command `run-android` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project.
android % cd ../ -> androidの中にいたので出る。
% react-native run-android
warn Package react-native-navigation contains invalid configuration: "dependency.assets" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
(node:99600) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
info JS server already running.
info Installing the app...
。。。
BUILD FAILED in 2s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
gradleを6.1.1に下げた。
Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
Exception java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 [in thread "Daemon worker"]
6.3にしたら別のエラーが出て、関連で新しいreact-nativeの新しいバージョンが出てきた。react-nativeを0.7にアップデート。
またBUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 62
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
これもいっつも出てる。
もうやったけどこれやる。
brew install node
brew install watchman
kokoを目を皿のようにしてみながら実行した。
What went wrong:
Could not open settings remapped class cache for 2b2v1krlox0a6mjvnk5eb71wr (/Users/name/.gradle/caches/6.3/scripts-remapped/settings_1rtjkco7nerckjkpaki5l1zp5/2b2v1krlox0a6mjvnk5eb71wr/settingsdeec0faa97453e2ce860d75e6bf1604b).
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
What went wrong:
Could not open settings remapped class cache for 2b2v1krlox0a6mjvnk5eb71wr (/Users/name/.gradle/caches/6.3/scripts-remapped/settings_1rtjkco7nerckjkpaki5l1zp5/2b2v1krlox0a6mjvnk5eb71wr/settingsdeec0faa97453e2ce860d75e6bf1604b).
16:28
今日ほぼこれしかヤッテナイ。
% cd android
% ./gradlew clean
FAILURE: Build failed with an exception.
What went wrong:
Could not open settings remapped class cache for 2b2v1krlox0a6mjvnk5eb71wr (/Users/name/.gradle/caches/6.3/scripts-remapped/settings_1rtjkco7nerckjkpaki5l1zp5/2b2v1krlox0a6mjvnk5eb71wr/settingsdeec0faa97453e2ce860d75e6bf1604b).
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 354ms
Konoha Gradlewo7.1.1にしろといっている。
What went wrong:
Could not open settings generic class cache for settings file '/Users/name/Desktop/name/android/settings.gradle' (/Users/name/.gradle/caches/7.1.1/scripts/c4ztlsix1wtwq6py1aljg8mhz).
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa….
もう殺してくれ。。。
新しいreact-nativeファイル作ろうかな。
17:12
新しいプロジェクトはyarn startから普通に実機でテストできた。
motonoプロジェクトに戻ってyarn start
warn Package react-native-navigation contains invalid configuration: "dependency.assets" is not allowed,"dependency.hooks" is not allowed.
korezenzendetekonai
これはエラーでてないけど何か成功してるのか。。?新しいプロジェクトでyarn startした時はでっかいQRコードが出てきてそこからアプリ開けたんだけど。
多分自分が根本的に理解できてない。何も理解できてない。
% react-native run-android
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61 on Apple Arm
gradleを7.3にする。
Exception in thread "main" java.io.FileNotFoundException: https://downloads.gradle-dn.com/distributions/gradle-7.3.0-bin.zip
7.3.0なんて無かった。7.5.1に変更
build.gradle -> classpath 'com.android.tools.build:gradle:7.3.0'
warn Package react-native-navigation contains invalid configuration: "dependency.assets" is not allowed,"dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
(node:20009) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
info Starting JS server...
info Installing the app...
> Configure project :react-native-reanimated
Native libs debug enabled: false
Android gradle plugin: 7.3.0
Gradle: 7.5.1
building Reanimated2
> Configure project :app
Configuration 'androidApis' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidJacocoAnt' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidJdkImage' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestDebugCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestDebugImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestDebugRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestDebugWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestReleaseCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestReleaseImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestReleaseRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestReleaseWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestUtil' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'androidTestWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'annotationProcessor' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'api' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'archives' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'compileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'coreLibraryDesugaring' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugAnnotationProcessorClasspath' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugApi' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugApiElements' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugReverseMetadataValues' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugRuntimeClasspath' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugRuntimeElements' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugUnitTestAnnotationProcessorClasspath' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'debugWearBundling' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'default' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'implementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'lintChecks' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'lintPublish' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseAnnotationProcessorClasspath' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseApi' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseApiElements' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseReverseMetadataValues' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseRuntimeClasspath' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseRuntimeElements' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseUnitTestAnnotationProcessorClasspath' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'releaseWearBundling' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'runtimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testDebugCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testDebugImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testDebugRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testDebugWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesApi' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesDebugApi' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesDebugCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesDebugImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesDebugRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesDebugWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesReleaseApi' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesReleaseCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesReleaseImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesReleaseRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesReleaseWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testFixturesWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testReleaseCompileOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testReleaseImplementation' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testReleaseRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testReleaseWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testRuntimeOnly' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Configuration 'testWearApp' was resolved during configuration time.
This is a build performance and scalability issue.
See https://github.com/gradle/gradle/issues/2298
Run with --info for a stacktrace.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':react-native-linear-gradient'.
> Could not resolve all files for configuration ':react-native-linear-gradient:classpath'.
> Could not find com.android.tools.build:gradle:4.0.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :react-native-linear-gradient
* 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 2s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':react-native-linear-gradient'.
> Could not resolve all files for configuration ':react-native-linear-gradient:classpath'.
> Could not find com.android.tools.build:gradle:4.0.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.1/gradle-4.0.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :react-native-linear-gradient
* 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 2s
at makeError (/Users/name/Desktop/name/node_modules/execa/index.js:174:9)
at /Users/name/Desktop/name/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/name/Desktop/name/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/name/Desktop/name/node_modules/@react-native-community/cli/build/index.js:142:9)
info Run CLI with --verbose flag for more details.
😭(゚∀゚)😭(゚∀゚)😭(゚∀゚)😭(゚∀゚)😭(゚∀゚)😭(゚∀゚)😭(゚∀゚)😭(゚∀゚)😭(゚∀゚)
え。どうしよう。マントルまで埋まりたい。今金曜日の夜。
17:58