eclair-mobile icon indicating copy to clipboard operation
eclair-mobile copied to clipboard

build failed at app\build.gradle

Open ha271923 opened this issue 6 years ago • 6 comments

Android Studio compiler is always failed at https://github.com/ACINQ/eclair-mobile/blob/testnet/app/build.gradle#L123.

Is there any problem?

=============================================================== ` Executing tasks: [:app:generateDebugSources] in project /GitHub/Eclair/eclair-mobile-0.4.9-TESTNET

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:compileDebugRenderscript'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not find fr.acinq.eclair:eclair-core_2.11:0.3.3-android. Required by: project :app

  • 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 `

ha271923 avatar Oct 24 '19 03:10 ha271923

Hello,

Build fails because it needs the eclair-core library (this is a required dependency for this project, it contains most of the Lightning related logic).

To get this version of eclair-core you must build it yoursef. To do that:

  • clone the eclair project: https://github.com/ACINQ/eclair
  • checkout the v0.3.3-android tag
  • build the project with maven (you can find dertailed instructions here: https://github.com/ACINQ/eclair/blob/v0.3.3-android/BUILD.md
  • Then you're good to go and can build Eclair Mobile

dpad85 avatar Oct 24 '19 09:10 dpad85

Why not release AAR to maven server or Github directly? Since I still build failed by BUILD.md

ha271923 avatar Oct 24 '19 10:10 ha271923

Do you still have the same error?

You're right we could release the archive on maven, we already do that for our bitcoin-lib library.

dpad85 avatar Oct 24 '19 10:10 dpad85

When will it available on maven?

ha271923 avatar Oct 24 '19 10:10 ha271923

Still not found 'fr.acinq.eclair:eclair-core_2.11:0.3.3-android' at https://mvnrepository.com/artifact/fr.acinq?sort=newest

ha271923 avatar Oct 25 '19 06:10 ha271923

Add these dependencies and still build failed at image
LOG eclair_build_failed.txt

ha271923 avatar Oct 25 '19 06:10 ha271923