Git Product home page Git Product logo

Comments (4)

rawmain avatar rawmain commented on July 19, 2024

Hello @djnicolai

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' [...]

Because you haven't read / followed the instructions of the provided Readme - Build paragraph.

from it-dgc-verificac19-android.

djnicolai avatar djnicolai commented on July 19, 2024

Hello @djnicolai

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' [...]

Because you haven't read / followed the instructions of the provided Readme - Build paragraph.

Could not determine the dependencies of task ':app:lintDebug'.

Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
Could not resolve project :dgc-sdk.
Required by:
project :app
> No matching configuration of project :dgc-sdk was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- None of the consumable configurations have attributes.
Could not resolve project :decoder.
Required by:
project :app
> No matching configuration of project :decoder was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- None of the consumable configurations have attributes.

from it-dgc-verificac19-android.

rawmain avatar rawmain commented on July 19, 2024

Hello @djnicolai

Could not determine the dependencies of task ':app:lintDebug'.

Again...

As clearly written, in order to successfully build and run the project, you must read & follow the instructions of the provided Readme - Build paragraph.

Until your build environment doesn't match the settings.gradle project structure for app / dgc-sdk / decoder subdirectories, you'll keep on getting such build resolution errors.


Therefore :

  1. Set the right subdirectories' names/structure of the cloned projects - just according to the provided instructions
Subdirectory Name Subdirectory Content = Repository to be cloned
dgca-verifier-app-android https://github.com/ministero-salute/it-dgc-verificaC19-android
dgca-app-core-android https://github.com/eu-digital-green-certificates/dgca-app-core-android
it-dgc-verificac19-sdk-android https://github.com/ministero-salute/it-dgc-verificac19-sdk-android
dgc-certlogic-android https://github.com/eu-digital-green-certificates/dgc-certlogic-android

.

  1. Edit it-dgc-verificac19-sdk-android\sdk\build.gradle by replacing BASE_URL, SERVER_HOST and CERTIFICATE_SHA values for the buildType debug config with the corresponding values of the buildType release config
    buildTypes {
        debug {
            minifyEnabled false
            buildConfigField "String", "BASE_URL", "\"https://get.dgc.gov.it/v1/dgc/\""
            buildConfigField "String", "SERVER_HOST", "\"get.dgc.gov.it\""
            buildConfigField "String", "CERTIFICATE_SHA", "\"sha256/7cZJIDPacG8FS3pq6Mvxg+7yBDM/VYc2alOcbVe/e74=\""
            buildConfigField "String", "SDK_VERSION", "\"1.1.6\""
        }


Once you've carefully read & followed such trivial instructions, you'll be finally able to build and run both debug and release variants of the app project inside the dgca-verifier-app-android subdirectory.

from it-dgc-verificac19-android.

stale avatar stale commented on July 19, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from it-dgc-verificac19-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.