Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Build failed with errors in Payment.java #266

Closed
emanuelb opened this issue Apr 2, 2021 · 1 comment
Closed

Build failed with errors in Payment.java #266

emanuelb opened this issue Apr 2, 2021 · 1 comment
Assignees

Comments

@emanuelb
Copy link

emanuelb commented Apr 2, 2021

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
Copy link
Author

Closing this issue as build of latest version 0.4.16 works, details & Containerfile in: #232 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants