ACINQ / eclair-mobile

An Android wallet for the Lightning Network
Apache License 2.0
258 stars 43 forks source link

Build failed with errors in Payment.java #266

Closed emanuelb closed 3 years ago

emanuelb commented 3 years ago

Errors:

Task :app:greendao FAILED Found 6 problem(s) parsing "/home/appuser/app/eclair/eclair-mobile/app/src/main/java/fr/acinq/eclair/wallet/models/Payment.java":

1 @1: Pb(324) The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files (ID: 16777540; error: true)

2 @1: Pb(324) The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files (ID: 16777540; error: true)

3 @1: Pb(324) The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files (ID: 16777540; error: true)

4 @116: Pb(143) Implicit super constructor Object() is undefined. Must explicitly invoke another constructor (ID: 134217871; error: true)

5 @120: Pb(143) Implicit super constructor Object() is undefined. Must explicitly invoke another constructor (ID: 134217871; error: true)

6 @125: Pb(143) Implicit super constructor Object() is undefined. Must explicitly invoke another constructor (ID: 134217871; error: true)

FAILURE: Build failed with an exception.

To reproduce:

FROM frolvlad/alpine-glibc

RUN set -ex; \
    apk update; \
    apk add --no-cache \
        bash \
        git \
        maven \
        openjdk11; \
    adduser -D appuser;

USER appuser

ENV ANDROID_HOME="/home/appuser/app/sdk/" \
    ANDROID_SDK_ROOT="/home/appuser/app/sdk"

RUN set -ex; \
    mkdir -p "/home/appuser/app/sdk/licenses" "/home/appuser/app/eclair/"; \
    printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > "/home/appuser/app/sdk/licenses/android-sdk-license"; \
    cd /home/appuser/app/eclair/; \
    git clone https://github.com/ACINQ/eclair; \
    cd /home/appuser/app/eclair/eclair/; \
    git checkout android; \
    mvn clean install -DskipTests; \
    cd /home/appuser/app/eclair; \
    git clone --depth 1 https://github.com/ACINQ/eclair-mobile; \
    cd /home/appuser/app/sdk/; \
    wget https://dl.google.com/android/repository/commandlinetools-linux-6858069_latest.zip; \
    unzip commandlinetools-linux-6858069_latest.zip; \
    rm commandlinetools-linux-6858069_latest.zip; \
    /home/appuser/app/sdk/cmdline-tools/bin/sdkmanager --sdk_root=/home/appuser/app/sdk/ --install "ndk;20.0.5594570"; \
    cd /home/appuser/app/eclair/eclair-mobile; \
    ./gradlew assembleRelease
emanuelb commented 3 years ago

Closing this issue as build of latest version 0.4.16 works, details & Containerfile in: https://github.com/ACINQ/eclair-mobile/issues/232#issuecomment-849452937