Skip to content

Build for Android with Ubuntu 20.04 #474

@DCode-It-Patrick

Description

@DCode-It-Patrick

Hi, i have tried to build core for android with Android Studio and/or Gradle command line.

Android Studio : 3.4.2
SDK : Android 9
NDK : 20.1.5948944
CMake : 3.10 && 3.6
Clang 7
openJdk 14

I tried with gradle 5.1.1 but i had this error :

  `triguntu@triguntu-All-Series:~/breadwallet-core/Java$ ./gradlew clean build

 Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details
 java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
         at org.codehaus.groovy.vmplugin.VMPluginFactory.<clinit(VMPluginFactory.java:43)
         at org.codehaus.groovy.reflection.GroovyClassValueFactory.<clinit(GroovyClassValueFactory.java:35)
         at org.codehaus.groovy.reflection.ClassInfo.<clinit(ClassInfo.java:109)
         at org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:95)
         at org.codehaus.groovy.reflection.ReflectionCache.<clinit(ReflectionCache.java:39)
         at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.registerMethods(MetaClassRegistryImpl.java:209)
         at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init(MetaClassRegistryImpl.java:107)
         at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.<init(MetaClassRegistryImpl.java:85)
         at groovy.lang.GroovySystem.<clinit(GroovySystem.java:36)
         at org.codehaus.groovy.runtime.InvokerHelper.<clinit(InvokerHelper.java:86)
         at groovy.lang.GroovyObjectSupport.getDefaultMetaClass(GroovyObjectSupport.java:59)
         at groovy.lang.GroovyObjectSupport.<init(GroovyObjectSupport.java:32)
         at org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension.<init(DefaultExtraPropertiesExtension.java:29)
         at org.gradle.api.internal.plugins.DefaultConvention.<init(DefaultConvention.java:47)
         at org.gradle.api.internal.ExtensibleDynamicObject.<init(ExtensibleDynamicObject.java:58)
         at org.gradle.initialization.DefaultSettings.<init(DefaultSettings.java:93)
         at org.gradle.initialization.DefaultSettings_Decorated.<init(Unknown Source)
         at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
         at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
         at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:500)
         at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
         at org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:51)
         at org.gradle.api.internal.ClassGeneratorBackedInstantiator.newInstance(ClassGeneratorBackedInstantiator.java:36)
         at org.gradle.initialization.SettingsFactory.createSettings(SettingsFactory.java:52)
         at org.gradle.initialization.ScriptEvaluatingSettingsProcessor.process(ScriptEvaluatingSettingsProcessor.java:56)
         at org.gradle.initialization.PropertiesLoadingSettingsProcessor.process(PropertiesLoadingSettingsProcessor.java:37)
         at org.gradle.initialization.SettingsEvaluatedCallbackFiringSettingsProcessor.process(SettingsEvaluatedCallbackFiringSettingsProcessor.java:34)
         at org.gradle.initialization.RootBuildCacheControllerSettingsProcessor.process(RootBuildCacheControllerSettingsProcessor.java:36)
         at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:48)
         at org.gradle.initialization.BuildOperationSettingsProcessor$2.call(BuildOperationSettingsProcessor.java:45)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:315)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:305)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:101)
         at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
         at org.gradle.initialization.BuildOperationSettingsProcessor.process(BuildOperationSettingsProcessor.java:45)
         at org.gradle.initialization.DefaultSettingsLoader.findSettingsAndLoadIfAppropriate(DefaultSettingsLoader.java:104)
         at org.gradle.initialization.DefaultSettingsLoader.findAndLoadSettings(DefaultSettingsLoader.java:45)
         at org.gradle.initialization.SettingsAttachingSettingsLoader.findAndLoadSettings(SettingsAttachingSettingsLoader.java:35)
         at org.gradle.internal.composite.CommandLineIncludedBuildSettingsLoader.findAndLoadSettings(CommandLineIncludedBuildSettingsLoader.java:34)
         at org.gradle.internal.composite.ChildBuildRegisteringSettingsLoader.findAndLoadSettings(ChildBuildRegisteringSettingsLoader.java:47)
         at org.gradle.internal.composite.CompositeBuildSettingsLoader.findAndLoadSettings(CompositeBuildSettingsLoader.java:35)
         at org.gradle.initialization.DefaultGradleLauncher$LoadBuild.run(DefaultGradleLauncher.java:277)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
         at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
         at org.gradle.initialization.DefaultGradleLauncher.loadSettings(DefaultGradleLauncher.java:202)
         at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:147)
         at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:134)
         at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:58)
         at org.gradle.internal.invocation.GradleBuildController$1.execute(GradleBuildController.java:55)
         at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:82)
         at org.gradle.internal.invocation.GradleBuildController$3.create(GradleBuildController.java:75)
         at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:183)
         at org.gradle.internal.work.StopShieldingWorkerLeaseService.withLocks(StopShieldingWorkerLeaseService.java:40)
         at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:75)
         at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:55)
         at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
         at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
         at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:58)
         at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
         at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:39)
         at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:49)
         at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:44)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:315)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:305)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
         at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:101)
         at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
         at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:44)
         at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:49)
         at org.gradle.launcher.exec.InProcessBuildActionExecuter$1.transform(InProcessBuildActionExecuter.java:46)
         at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:78)
         at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:46)
         at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:31)
         at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:42)
         at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:28)
         at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
         at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:52)
         at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:59)
         at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:36)
         at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:68)
         at org.gradle.tooling.internal.provider.SessionScopeBuildActionExecuter.execute(SessionScopeBuildActionExecuter.java:38)
         at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:37)
         at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:26)
         at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
         at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
         at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:60)
         at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:32)
         at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:55)
         at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:41)
         at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:48)
         at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:32)
         at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
         at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
         at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
         at org.gradle.util.Swapper.swap(Swapper.java:38)
         at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
         at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:81)
         at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
         at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
         at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
         at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
         at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
         at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
         at java.base/java.lang.Thread.run(Thread.java:832)
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Could not create an instance of type org.gradle.initialization.DefaultSettings_Decorated.
  Could not initialize class org.codehaus.groovy.reflection.ReflectionCache
 
 * 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
 triguntu@triguntu-All-Series:~/breadwallet-core/Java$ 

Also, i change gradle version in gradle-wrapper.properties from 5.1.1 to 6.8

 triguntu@triguntu-All-Series:~/breadwallet-core/Java$ ./gradlew clean build
 
  Task :corenative-android:externalNativeBuildCleanDebug
 Clean corecrypto armeabi-v7a,sqlite3 armeabi-v7a
 Cleaning... 0 files.
 Clean sqlite3 arm64-v8a,corecrypto arm64-v8a
 Cleaning... 0 files.
 Clean sqlite3 x86,corecrypto x86
 Cleaning... 0 files.
 Clean corecrypto x86_64,sqlite3 x86_64
 Cleaning... 0 files.
 
  Task :corenative-android:externalNativeBuildCleanRelease
 Clean corecrypto armeabi-v7a,sqlite3 armeabi-v7a
 Cleaning... 0 files.
 Clean sqlite3 arm64-v8a,corecrypto arm64-v8a
 Cleaning... 0 files.
 Clean sqlite3 x86,corecrypto x86
 Cleaning... 0 files.
 Clean corecrypto x86_64,sqlite3 x86_64
 Cleaning... 0 files.
 
  Task :corenative-android:compileDebugJavaWithJavac FAILED
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:10: error: cannot find symbol
 import com.breadwallet.corenative.crypto.BRCryptoClient;
                                         ^
   symbol:   class BRCryptoClient
   location: package com.breadwallet.corenative.crypto
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:16: error: cannot find symbol
 import com.breadwallet.corenative.crypto.BRCryptoWalletManagerDisconnectReason;
                                         ^
   symbol:   class BRCryptoWalletManagerDisconnectReason
   location: package com.breadwallet.corenative.crypto
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:17: error: cannot find symbol
 import com.breadwallet.corenative.crypto.BRCryptoSyncStoppedReason;
                                         ^
   symbol:   class BRCryptoSyncStoppedReason
   location: package com.breadwallet.corenative.crypto
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:18: error: cannot find symbol
 import com.breadwallet.corenative.crypto.BRCryptoTransferSubmitError;
                                         ^
   symbol:   class BRCryptoTransferSubmitError
   location: package com.breadwallet.corenative.crypto
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:19: error: package com.breadwallet.corenative.support does not exist
 import com.breadwallet.corenative.support.BRCryptoSecret;
                                          ^
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:109: error: package BRCryptoSecret does not exist
     public static native Pointer cryptoKeyCreateFromSecret(BRCryptoSecret.ByValue secret);
                                                                          ^
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:116: error: package BRCryptoSecret does not exist
     public static native BRCryptoSecret.ByValue cryptoKeyGetSecret(Pointer key);
                                        ^
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:250: error: cannot find symbol
     public static native Pointer cryptoTransferSubmitErrorGetMessage(BRCryptoTransferSubmitError error);
                                                                      ^
   symbol:   class BRCryptoTransferSubmitError
   location: class CryptoLibraryDirect
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:301: error: package BRCryptoClient does not exist
                                                            BRCryptoClient.ByValue client,
                                                                          ^
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:336: error: cannot find symbol
     public static native Pointer cryptoWalletManagerDisconnectReasonGetMessage(BRCryptoWalletManagerDisconnectReason reason);
                                                                                ^
   symbol:   class BRCryptoWalletManagerDisconnectReason
   location: class CryptoLibraryDirect
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryDirect.java:339: error: cannot find symbol
     public static native Pointer cryptoSyncStoppedReasonGetMessage(BRCryptoSyncStoppedReason reason);
                                                                    ^
   symbol:   class BRCryptoSyncStoppedReason
   location: class CryptoLibraryDirect
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManagerState.java:28: error: cannot find symbol
             public BRCryptoWalletManagerDisconnectReason reason;
                    ^
   symbol:   class BRCryptoWalletManagerDisconnectReason
   location: class disconnected_struct
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManagerState.java:38: error: cannot find symbol
             public disconnected_struct(BRCryptoWalletManagerDisconnectReason reason) {
                                        ^
   symbol:   class BRCryptoWalletManagerDisconnectReason
   location: class disconnected_struct
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoTransfer.java:111: error: cannot find symbol
     public Optional<BRCryptoTransferAttribute getAttributeAt(UnsignedLong index) {
                     ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoTransfer
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:62: error: cannot find symbol
     public BRCryptoNetworkCanonicalType getCanonicalType () {
            ^
   symbol:   class BRCryptoNetworkCanonicalType
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:296: error: cannot find symbol
     public BRCryptoSyncMode getDefaultSyncMode() {
            ^
   symbol:   class BRCryptoSyncMode
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:303: error: cannot find symbol
     public List<BRCryptoSyncMode getSupportedSyncModes() {
                 ^
   symbol:   class BRCryptoSyncMode
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:322: error: cannot find symbol
     public boolean supportsSyncMode(BRCryptoSyncMode mode) {
                                     ^
   symbol:   class BRCryptoSyncMode
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:98: error: cannot find symbol
     public Optional<BRCryptoTransferAttribute getTransferAttributeAt(@Nullable BRCryptoAddress target, UnsignedLong index) {
                     ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:111: error: cannot find symbol
     public Optional<BRCryptoTransferAttributeValidationError validateTransferAttribute(BRCryptoTransferAttribute attribute) {
                                                                                         ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:111: error: cannot find symbol
     public Optional<BRCryptoTransferAttributeValidationError validateTransferAttribute(BRCryptoTransferAttribute attribute) {
                     ^
   symbol:   class BRCryptoTransferAttributeValidationError
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:128: error: cannot find symbol
     public Optional<BRCryptoTransferAttributeValidationError validateTransferAttributes(List<BRCryptoTransferAttribute attributes) {
                                                                                               ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:128: error: cannot find symbol
     public Optional<BRCryptoTransferAttributeValidationError validateTransferAttributes(List<BRCryptoTransferAttribute attributes) {
                     ^
   symbol:   class BRCryptoTransferAttributeValidationError
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:201: error: cannot find symbol
                                                      List<BRCryptoTransferAttribute attributes) {
                                                           ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoKey.java:11: error: package com.breadwallet.corenative.support does not exist
 import com.breadwallet.corenative.support.BRCryptoSecret;
                                          ^
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:41: error: cannot find symbol
                                                          BRCryptoClient client,
                                                          ^
   symbol:   class BRCryptoClient
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:44: error: cannot find symbol
                                                          BRCryptoSyncMode mode,
                                                          ^
   symbol:   class BRCryptoSyncMode
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:133: error: cannot find symbol
     public BRCryptoSyncMode getMode() {
            ^
   symbol:   class BRCryptoSyncMode
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:139: error: cannot find symbol
     public void setMode(BRCryptoSyncMode mode) {
                         ^
   symbol:   class BRCryptoSyncMode
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:193: error: cannot find symbol
     public void syncToDepth(BRCryptoSyncDepth depth) {
                             ^
   symbol:   class BRCryptoSyncDepth
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:326: error: cannot find symbol
     public void announceGetBlockNumberSuccess(BRCryptoClientCallbackState callbackState, UnsignedLong blockNumber) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:332: error: cannot find symbol
     public void announceGetBlockNumberSuccess(BRCryptoClientCallbackState callbackState, String blockNumber) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:338: error: cannot find symbol
     public void announceGetBlockNumberFailure(BRCryptoClientCallbackState callbackState) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:344: error: cannot find symbol
     public void announceGetTransactionsItem(BRCryptoClientCallbackState callbackState, BRCryptoTransferStateType status, byte[] transaction, UnsignedLong timestamp,
                                             ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:352: error: cannot find symbol
     public void announceGetTransactionsItemEth(BRCryptoClientCallbackState callbackState, String hash, String sourceAddr,
                                                ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:364: error: cannot find symbol
     public void announceGetTransactionsComplete(BRCryptoClientCallbackState callbackState, boolean success) {
                                                 ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:371: error: cannot find symbol
     public void announceGetTransfersItemGen(BRCryptoClientCallbackState callbackState,
                                             ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:407: error: cannot find symbol
     public void announceGetTransfersComplete(BRCryptoClientCallbackState callbackState, boolean success) {
                                              ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:414: error: cannot find symbol
     public void announceSubmitTransferSuccess(BRCryptoClientCallbackState callbackState) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:420: error: cannot find symbol
     public void announceSubmitTransferSuccess(BRCryptoClientCallbackState callbackState, String hash) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:426: error: cannot find symbol
     public void announceSubmitTransferFailure(BRCryptoClientCallbackState callbackState) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:432: error: cannot find symbol
     public void announceGetBalanceSuccess(BRCryptoClientCallbackState callbackState, String balance) {
                                           ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:438: error: cannot find symbol
     public void announceGetBalanceFailure(BRCryptoClientCallbackState callbackState) {
                                           ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:444: error: cannot find symbol
     public void announceGetGasPriceSuccess(BRCryptoClientCallbackState callbackState, String gasPrice) {
                                            ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:450: error: cannot find symbol
     public void announceGetGasPriceFailure(BRCryptoClientCallbackState callbackState) {
                                            ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:456: error: cannot find symbol
     public void announceGetGasEstimateSuccess(BRCryptoClientCallbackState callbackState, String gasEstimate, String gasPrice) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:462: error: cannot find symbol
     public void announceGetGasEstimateFailure(BRCryptoClientCallbackState callbackState, BRCryptoStatus status) {
                                               ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:468: error: cannot find symbol
     public void announceGetLogsItem(BRCryptoClientCallbackState callbackState, String hash, String contract,
                                     ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:480: error: cannot find symbol
     public void announceGetLogsComplete(BRCryptoClientCallbackState callbackState, boolean success) {
                                         ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:487: error: cannot find symbol
     public void announceGetBlocksSuccess(BRCryptoClientCallbackState callbackState, List<UnsignedLong blocks) {
                                          ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:496: error: cannot find symbol
     public void announceGetBlocksFailure(BRCryptoClientCallbackState callbackState) {
                                          ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:502: error: cannot find symbol
     public void announceGetTokensItem(BRCryptoClientCallbackState callbackState, String address, String symbol, String name,
                                       ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:510: error: cannot find symbol
     public void announceGetTokensComplete(BRCryptoClientCallbackState callbackState, boolean success) {
                                           ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:517: error: cannot find symbol
     public void announceGetNonceSuccess(BRCryptoClientCallbackState callbackState, String address, String nonce) {
                                         ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:523: error: cannot find symbol
     public void announceGetNonceFailure(BRCryptoClientCallbackState callbackState) {
                                         ^
   symbol:   class BRCryptoClientCallbackState
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManagerEvent.java:174: error: cannot find symbol
             public BRCryptoSyncDepth depth() {
                    ^
   symbol:   class BRCryptoSyncDepth
   location: class syncRecommended_struct
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManagerEvent.java:125: error: cannot find symbol
             public BRCryptoSyncStoppedReason reason;
                    ^
   symbol:   class BRCryptoSyncStoppedReason
   location: class syncStopped_struct
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManagerEvent.java:135: error: cannot find symbol
             public syncStopped_struct(BRCryptoSyncStoppedReason reason) {
                                       ^
   symbol:   class BRCryptoSyncStoppedReason
   location: class syncStopped_struct
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoTransferState.java:64: error: cannot find symbol
             public BRCryptoTransferSubmitError error;
                    ^
   symbol:   class BRCryptoTransferSubmitError
   location: class errored_struct
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoTransferState.java:74: error: cannot find symbol
             public errored_struct(BRCryptoTransferSubmitError error) {
                                   ^
   symbol:   class BRCryptoTransferSubmitError
   location: class errored_struct
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryIndirect.java:11: error: cannot find symbol
 import com.breadwallet.corenative.crypto.BRCryptoTransferAttribute;
                                         ^
   symbol:   class BRCryptoTransferAttribute
   location: package com.breadwallet.corenative.crypto
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryIndirect.java:33: error: cannot find symbol
     public static Pointer cryptoWalletCreateTransfer(Pointer wallet, Pointer target, Pointer amount, Pointer feeBasis, SizeT attributesCount, BRCryptoTransferAttribute[] attributes) {
                                                                                                                                               ^
   symbol:   class BRCryptoTransferAttribute
   location: class CryptoLibraryIndirect
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryIndirect.java:38: error: cannot find symbol
     public static int cryptoWalletValidateTransferAttributes(Pointer wallet, SizeT countOfAttributes, BRCryptoTransferAttribute[] attributes, IntByReference validates) {
                                                                                                       ^
   symbol:   class BRCryptoTransferAttribute
   location: class CryptoLibraryIndirect
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryIndirect.java:65: error: cannot find symbol
         Pointer cryptoWalletCreateTransfer(Pointer wallet, Pointer target, Pointer amount, Pointer feeBasis, SizeT attributesCount, BRCryptoTransferAttribute[] attributes);
                                                                                                                                     ^
   symbol:   class BRCryptoTransferAttribute
   location: interface LibraryInterface
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/CryptoLibraryIndirect.java:66: error: cannot find symbol
         int cryptoWalletValidateTransferAttributes(Pointer wallet, SizeT countOfAttributes, BRCryptoTransferAttribute[] attributes, IntByReference validates);
                                                                                             ^
   symbol:   class BRCryptoTransferAttribute
   location: interface LibraryInterface
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManager.java:136: error: cannot find symbol
         return BRCryptoSyncMode.fromCore(CryptoLibraryDirect.cryptoWalletManagerGetMode(thisPtr));
                ^
   symbol:   variable BRCryptoSyncMode
   location: class BRCryptoWalletManager
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:108: error: cannot find symbol
         ).transform(BRCryptoTransferAttribute::new);
                     ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:116: error: cannot find symbol
         BRCryptoTransferAttributeValidationError error = BRCryptoTransferAttributeValidationError.fromCore(
         ^
   symbol:   class BRCryptoTransferAttributeValidationError
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:116: error: cannot find symbol
         BRCryptoTransferAttributeValidationError error = BRCryptoTransferAttributeValidationError.fromCore(
                                                          ^
   symbol:   variable BRCryptoTransferAttributeValidationError
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:134: error: cannot find symbol
         BRCryptoTransferAttribute[] attributeRefs = new BRCryptoTransferAttribute[attributesCount];
         ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:134: error: cannot find symbol
         BRCryptoTransferAttribute[] attributeRefs = new BRCryptoTransferAttribute[attributesCount];
                                                         ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:137: error: cannot find symbol
         BRCryptoTransferAttributeValidationError error = BRCryptoTransferAttributeValidationError.fromCore(
         ^
   symbol:   class BRCryptoTransferAttributeValidationError
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:137: error: cannot find symbol
         BRCryptoTransferAttributeValidationError error = BRCryptoTransferAttributeValidationError.fromCore(
                                                          ^
   symbol:   variable BRCryptoTransferAttributeValidationError
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:205: error: cannot find symbol
         BRCryptoTransferAttribute[] attributeRefs = new BRCryptoTransferAttribute[attributesCount];
         ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWallet.java:205: error: cannot find symbol
         BRCryptoTransferAttribute[] attributeRefs = new BRCryptoTransferAttribute[attributesCount];
                                                         ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoWallet
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoTransfer.java:119: error: cannot find symbol
         ).transform(BRCryptoTransferAttribute::new);
                     ^
   symbol:   class BRCryptoTransferAttribute
   location: class BRCryptoTransfer
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:63: error: cannot find symbol
         return BRCryptoNetworkCanonicalType.fromCore(
                ^
   symbol:   variable BRCryptoNetworkCanonicalType
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:297: error: cannot find symbol
         return BRCryptoSyncMode.fromCore(
                ^
   symbol:   variable BRCryptoSyncMode
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:306: error: cannot find symbol
         List<BRCryptoSyncMode modes = new ArrayList<();
              ^
   symbol:   class BRCryptoSyncMode
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoNetwork.java:313: error: cannot find symbol
                     modes.add(BRCryptoSyncMode.fromCore(modeInt));
                               ^
   symbol:   variable BRCryptoSyncMode
   location: class BRCryptoNetwork
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoKey.java:222: error: cannot find symbol
                         new BRCryptoSecret(secret).toByValue()
                             ^
   symbol:   class BRCryptoSecret
   location: class BRCryptoKey
 /home/triguntu/breadwallet-core/Java/corenative/src/main/java/com/breadwallet/corenative/crypto/BRCryptoWalletManagerEvent.java:175: error: cannot find symbol
                 return BRCryptoSyncDepth.fromCore(depthEnum);
                        ^
   symbol:   variable BRCryptoSyncDepth
   location: class syncRecommended_struct
 82 errors
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Execution failed for task ':corenative-android:compileDebugJavaWithJavac'.
  Compilation failed; see the compiler error output for details.
 
 * 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 7.0.
 Use '--warning-mode all' to show the individual deprecation warnings.
 See https://docs.gradle.org/6.8/userguide/command_line_interface.html#sec:command_line_warnings
 
 BUILD FAILED in 2s
 27 actionable tasks: 21 executed, 6 up-to-date

Can you help me with those issues ? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions