expo / turtle

Standalone app builder service
MIT License
385 stars 29 forks source link

turtle build:android error: Could not find com.github.Raizlabs.DBFlow:dbflow-core:4.2.4 #300

Closed simoneb closed 3 years ago

simoneb commented 3 years ago

New Issue Checklist

Issue Description

Build fails with error:

Mar 22 12:28:30 turtle[3166] INFO:  FAILURE: Build failed with an exception.
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:  * What went wrong:
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:  Could not determine the dependencies of task ':app:lintVitalRelease'.
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:  > Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:     > Could not find com.github.Raizlabs.DBFlow:dbflow-core:4.2.4.
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:       Required by:
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:           project :app > host.exp.exponent:expoview:40.0.0
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Command executed
turtle build:android --type=apk --output=build/app.apk --public-url http://localhost:5000/android-index.json --allow-non-https-public-url --keystore-path ./keystore.jks --keystore-alias $EXPO_ANDROID_KEYSTORE_ALIAS
Complete output when running turtle, including the stack trace and command used
 turtle build:android --type=apk --output=build/polaris.apk --public-url http://localhost:5000/android-index.json --allow-non-https-public-url --keystore-path ./keystore.jks --keystore-alias ***
Mar 22 12:26:06 turtle[3166] INFO:  shell app for SDK 40.0.0 doesn't exist, downloading...
  platform: "android"
  buildPhase: "setting up environment"
Mar 22 12:26:08 turtle[3166] INFO:  shell app has been downloaded
  platform: "android"
  buildPhase: "setting up environment"
Mar 22 12:26:08 turtle[3166] INFO:  extracting shell app (this may take a while)...
  platform: "android"
  buildPhase: "setting up environment"
Mar 22 12:26:11 turtle[3166] INFO:  shell app extracted
  platform: "android"
  buildPhase: "setting up environment"
Mar 22 12:26:11 turtle[3166] INFO:  installing dependencies in /home/runner/.turtle/workingdir/android/sdk40 directory...
  platform: "android"
  buildPhase: "setting up environment"
Mar 22 12:26:11 turtle[3166] INFO:  info No lockfile found.
  platform: "android"
  buildPhase: "setting up environment"
  source: "stdout"
Mar 22 12:26:12 turtle[3166] INFO:  [1/4] Resolving packages...
  platform: "android"
  buildPhase: "setting up environment"
  source: "stdout"
Mar 22 12:26:12 turtle[3166] INFO:  warning react-native-unimodules > expo-constants > fbjs > core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
  platform: "android"
  buildPhase: "setting up environment"
  source: "stderr"
Mar 22 12:26:14 turtle[3166] INFO:  warning workspace-aggregator-7b7ccf54-bd3b-4e84-8bf6-2f6bd279d186 > expo-ads-facebook > fbemitter > fbjs > core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
  platform: "android"
  buildPhase: "setting up environment"
  source: "stderr"
Mar 22 12:26:14 turtle[3166] INFO:  warning workspace-aggregator-7b7ccf54-bd3b-4e84-8bf6-2f6bd279d186 > @expo/danger > danger > @babel/polyfill@7.12.1: 🚨 This package has been deprecated in favor of separate inclusion of a polyfill and regenerator-runtime (when needed). See the @babel/polyfill docs (https://babeljs.io/docs/en/babel-polyfill) for more information.
  platform: "android"
Mar 22 12:28:30 turtle[3166] INFO:           project :app > host.exp.exponent:expoview:40.0.0
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:     > Could not find com.github.Raizlabs.DBFlow:dbflow:4.2.4.
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:       Required by:
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:           project :app > host.exp.exponent:expoview:40.0.0
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:  * Try:
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:  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.
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:  * Get more help at https://help.gradle.org
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:30 turtle[3166] INFO:  BUILD FAILED in 1m 30s
  platform: "android"
  buildPhase: "running gradle"
  source: "stderr"
Mar 22 12:28:31 turtle[3166] ERROR: Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/home/runner/work/polaris/polaris/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
    at Object.onceWrapper (events.js:422:26)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:467:12)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    ...
    at spawnAsync (/home/runner/work/polaris/polaris/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
    at spawnAsyncThrowError (/@expo/xdl@59.0.17/src/detach/ExponentTools.ts:111:19)
    at buildShellAppAsync (/@expo/xdl@59.0.17/src/detach/AndroidShellApp.js:1476:11)
    at Object.createAndroidShellAppAsync (/@expo/xdl@59.0.17/src/detach/AndroidShellApp.js:380:5)
    at runShellAppBuilder (/home/runner/work/polaris/polaris/node_modules/turtle-cli/src/builders/android.ts:91:5)
    at buildAndroid (/home/runner/work/polaris/polaris/node_modules/turtle-cli/src/builders/android.ts:23:26)
    at /home/runner/work/polaris/polaris/node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
    at Command. (/home/runner/work/polaris/polaris/node_modules/turtle-cli/src/bin/index.ts:23:12)
  platform: "android"
Mar 22 12:28:31 turtle[3166] ERROR: Failed to build standalone app
  err: Error: ./gradlew exited with non-zero code: 1
      at ChildProcess.completionListener (./node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
      at Object.onceWrapper (events.js:422:26)
      at ChildProcess.emit (events.js:315:20)
      at ChildProcess.EventEmitter.emit (domain.js:467:12)
      at maybeClose (internal/child_process.js:1048:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
      ...
      at spawnAsync (./node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
      at spawnAsyncThrowError (/@expo/xdl@59.0.17/src/detach/ExponentTools.ts:111:19)
      at buildShellAppAsync (/@expo/xdl@59.0.17/src/detach/AndroidShellApp.js:1476:11)
      at Object.createAndroidShellAppAsync (/@expo/xdl@59.0.17/src/detach/AndroidShellApp.js:380:5)
      at runShellAppBuilder (./node_modules/turtle-cli/src/builders/android.ts:91:5)
      at buildAndroid (./node_modules/turtle-cli/src/builders/android.ts:23:26)
      at ./node_modules/turtle-cli/src/bin/utils/builder.ts:87:7
      at Command. (./node_modules/turtle-cli/src/bin/index.ts:23:12)
  platform: "android" 

Environment

 Expo CLI 4.3.2 environment info:
    System:
      OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
      Shell: 5.0.17 - /bin/bash
    Binaries:
      Node: 14.16.0 - /opt/hostedtoolcache/node/14.16.0/x64/bin/node
      Yarn: 1.22.5 - /usr/bin/yarn
      npm: 6.14.11 - /opt/hostedtoolcache/node/14.16.0/x64/bin/npm
    SDKs:
      Android SDK:
        API Levels: 27, 28, 29, 30
        Build Tools: 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 30.0.3
        Android NDK: 21.4.7075529
    npmPackages:
      @expo/webpack-config: ~0.12.45 => 0.12.63 
      expo: ^40.0.0 => 40.0.1 
      react: 16.13.1 => 16.13.1 
      react-dom: 16.13.1 => 16.13.1 
      react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 
      react-native-web: ~0.13.12 => 0.13.18 
    Expo Workflow: managed 
IgorColetoBueno commented 3 years ago

I had the same problem:

`Mar 22 15:41:02 turtle[2715] ERROR: Error: ./gradlew exited with non-zero code: 1 at ChildProcess.completionListener (/opt/hostedtoolcache/node/10.24.0/x64/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13) at Object.onceWrapper (events.js:286:20) at ChildProcess.emit (events.js:198:13) at ChildProcess.EventEmitter.emit (domain.js:448:20) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) ... at spawnAsync (/opt/hostedtoolcache/node/10.24.0/x64/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19) at spawnAsyncThrowError (/@expo/xdl@59.0.17/src/detach/ExponentTools.ts:111:19) at buildShellAppAsync (/@expo/xdl@59.0.17/src/detach/AndroidShellApp.js:1476:11) platform: "android" Mar 22 15:41:02 turtle[2715] ERROR: Failed to build standalone app err: Error: ./gradlew exited with non-zero code: 1 at ChildProcess.completionListener (/opt/hostedtoolcache/node/10.24.0/x64/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13) at Object.onceWrapper (events.js:286:20) at ChildProcess.emit (events.js:198:13) at ChildProcess.EventEmitter.emit (domain.js:448:20) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) ... at spawnAsync (/opt/hostedtoolcache/node/10.24.0/x64/lib/node_modules/turtle-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19) at spawnAsyncThrowError (/@expo/xdl@59.0.17/src/detach/ExponentTools.ts:111:19) at buildShellAppAsync (/@expo/xdl@59.0.17/src/detach/AndroidShellApp.js:1476:11) platform: "android"

[error]Bash exited with code '1'.

Finishing: Turtle - Build `

Turtle version: turtle-cli@0.20.7

Expo diagnostics Expo CLI 4.3.2 environment info: System: OS: Windows 10 10.0.19041 Binaries: Node: 10.17.0 - D:\Programas\Nodejs\node.EXE npm: 7.6.0 - D:\Programas\Nodejs\npm.CMD IDEs: Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6392135 npmPackages: expo: ^40.0.0 => 40.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 Expo Workflow: managed

simoneb commented 3 years ago

I should add that I got a working build some days ago but because I'm trying to set up an automated build process right now I can't be certain that the error isn't caused by changes I did, even though I couldn't pinpoint that to anything specifically.

christianguevara commented 3 years ago

Same issue Screen Shot 2021-03-22 at 12 46 04

Diagnostics: ``` Expo CLI 4.3.2 environment info: System: OS: macOS 11.2.3 Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - ~/.nvm/versions/node/v14.16.0/bin/node Yarn: 1.22.5 - ~/.yarn/bin/yarn npm: 7.6.3 - ~/.nvm/versions/node/v14.16.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 28, 29 Build Tools: 28.0.3, 29.0.2 System Images: android-28 | Google Play Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom IDEs: Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: expo: ~40.0.0 => 40.0.1 react: 16.13.1 => 16.13.1 react-dom: 16.13.1 => 16.13.1 react-native: https://github.com/expo/react-native/archive/sdk-40.0.1.tar.gz => 0.63.2 react-native-web: ~0.13.12 => 0.13.18 npmGlobalPackages: expo-cli: 4.3.2 Expo Workflow: managed ```
brentvatne commented 3 years ago

see https://github.com/agrosner/DBFlow/issues/1717

IgorColetoBueno commented 3 years ago

I tried turtle build now and works fine!!

image

simoneb commented 3 years ago

It's fixed for me too, I'm going to close this issue. Thanks