Ivy-Apps / ivy-wallet

Ivy Wallet is an open-source money manager app for Android, no longer maintained. You can fork the code or download the final version from Google Play.
https://play.google.com/store/apps/details?id=com.ivy.wallet
GNU General Public License v3.0
2.81k stars 686 forks source link

can not run project #46

Closed tcDev1 closed 3 years ago

tcDev1 commented 3 years ago

I am able to clone build this project successfully to prepare for contributions, but when I hit the run button, it throws this error which I have tried to fix:

Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
   > java.lang.reflect.InvocationTargetException (no error message)

* 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.

I tried to fix by adding these to the gradle.properties:

kapt.use.worker.api=false
kapt.incremental.apt=false

It builds successfully, but when I hit run button again on android studio, and I get this error:

/Users/xxx/xxx/JetpackCompose/ivy-wallet/app/build/generated/source/kapt/debug/dagger/hilt/internal/processedrootsentinel/codegen/_com_ivy_wallet_IvyAndroidApp.java:4: error: package javax.annotation.processing does not exist
import javax.annotation.processing.Generated;

any other thing i can try to make it work? ^

ILIYANGERMANOV commented 3 years ago

Hi @SmithDev1,

I'm investigating at the moment. In the meantime make sure that you fulfill the Project Requirements.

Also, make sure that you've made a successful Gradle Sync + buildType: debug is selected.

Things to try:

Question:

tcDev1 commented 3 years ago

i'd try out the Build clean (./gradlew clean) but I am running Android Studio Arctic Fox | 2020.3.1 Patch 2

ILIYANGERMANOV commented 3 years ago

Cool, I run the same version of Android Studio on Linux and just tested cloning a fresh copy of the main branch and it opens and builds without issues.

Also, the CI/CD gradle build + lint is passing on all commits.

Please checkout the exact code from the main branch without making any changes and try gradle sync. Then you can send me the error log if any and I'll help you out :)

Btw, thanks for your interest in contributing to Ivy Wallet!

Things to check:

tcDev1 commented 3 years ago

the ./gradlew clean was successful, but didn't run the app still, then I tried with Run with --stacktrace and got this

tcDev1 commented 3 years ago

oh btw, i'm running it on a MAC...does it have anything to do with it?

ILIYANGERMANOV commented 3 years ago

Thanks for the logs @SmithDev1! Yes, it's exactly MacOS problem in Room DB. I didn't experience because both me and my CI/CD is running on Linux.

Potential Solution:

Let me know if it works. To change Room DB version go to dependencies.kt

tcDev1 commented 3 years ago

it works now! thanks...how can i indicate which of the issues i'd like to work on?

ILIYANGERMANOV commented 3 years ago

@SmithDev1 I'm glad to hear that! And yeah it's a good, qe haven't setup project management stuff yet but any PRs are welcome:)

Have a look at #48 and comment "I'm on it" if you want to work on it. It's a good starting point.