creativedrewy/NATIV

Unable to build SolanaNFT

Closed this issue · 1 comments

7-- commented

I cloned and assembled SolanaKT but still get error.

~/AndroidStudioProjects/NATIV-X/SolanaKT$ gradle assemble
...
BUILD SUCCESSFUL in 1s```
~/AndroidStudioProjects/SolanaKT$ gradle assemble
...
BUILD SUCCESSFUL in 1s```

But SolanaNFT still doesn't build:

~/AndroidStudioProjects/NATIV-X/SolanaNFT$ gradle assemble

> Configure project :app
ComposeOptions.kotlinCompilerVersion is deprecated. Compose now uses the kotlin compiler defined in your buildscript.
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :EthereumNFT
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :HarmonyOneNFT
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.

> Configure project :SolanaNFT
WARNING:Using flatDir should be avoided because it doesn't support any meta-data formats.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':SolanaNFT:compileReleaseJavaWithJavac'.
> Could not resolve all task dependencies for configuration ':SolanaNFT:releaseCompileClasspath'.
   > Could not resolve project :solana.
     Required by:
         project :SolanaNFT
      > No matching configuration of project :solana was found. The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
          - None of the consumable configurations have attributes.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
7-- commented

had to update settings.gradle to right casing. Getting another error now.

project(":solana").projectDir = new File("./SolanaKT/solana")