Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build project on Windows or Linux #7

Open
Abdulhanan2021 opened this issue Sep 15, 2021 · 1 comment
Open

Cannot build project on Windows or Linux #7

Abdulhanan2021 opened this issue Sep 15, 2021 · 1 comment

Comments

@Abdulhanan2021
Copy link

as mentioned in setup "Open the Cosmos folder using Intellij IDEA or Android Studio" there are others cosmos folder but not a folder name "cosmos"
can someone please guide how to make a build for android.

when building whole project folder "brd-mobile"
face this error while building project
Caused by: java.lang.AssertionError: Unsupported OS: windows. Expression: false
at build_94wvs0xuo1nr69mmu6v8vw4ez.jnaOsFromGradle(C:\projects\BreadW-git\brd-mobile\external\walletkit\WalletKitJava\corenative-jre\build.gradle:23)
at build_94wvs0xuo1nr69mmu6v8vw4ez$jnaOsFromGradle.callStatic(Unknown Source)
at build_94wvs0xuo1nr69mmu6v8vw4ez.jnaResourceFromGradle(C:\projects\BreadW-git\brd-mobile\external\walletkit\WalletKitJava\corenative-jre\build.gradle:39)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at build_94wvs0xuo1nr69mmu6v8vw4ez$_run_closure1$_closure6$_closure14$_closure29$_closure33.doCall(C:\projects\BreadW-git\brd-mobile\external\walletkit\WalletKitJava\corenative-jre\build.gradle:134)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.util.ClosureBackedAction.execute(ClosureBackedAction.java:71)
at org.gradle.model.internal.core.NoInputsModelAction.execute(NoInputsModelAction.java:39)
at org.gradle.model.internal.core.AbstractModelActionWithView.execute(AbstractModelActionWithView.java:37)
at org.gradle.model.internal.registry.DefaultModelRegistry$4.run(DefaultModelRegistry.java:497)
at org.gradle.model.internal.registry.RuleContext.run(RuleContext.java:42)
at org.gradle.model.internal.registry.DefaultModelRegistry.fireAction(DefaultModelRegistry.java:494)
... 148 more

@DrewCarlson
Copy link
Contributor

DrewCarlson commented Sep 15, 2021

Thanks, that documentation needs to be updated. The root brd-mobile folder should be opened in Intellij IDEA or Android Studio.

The error you see is from the local WalletKit which can only be compiled on macOS. At this time we do not have easy instructions to get setup on windows, but if you're interested you can follow the steps below.

To use the project on Windows, WalletKit must be published to your own maven repository (or locally with ./gradlew publishToMavenLocal) and update the coordinates in buildSrc/src/main/kotlin/brd/Libs.kt. After you'll need to remove the composite build configuration from settings.gradle.kts.

@DrewCarlson DrewCarlson changed the title Facing gradle error while opening project Cannot build project on Windows or Linux Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants