RivoLink / Aruco-Android

OpenCV Aruco for Android
33 stars 19 forks source link

Cant get application to run #19

Open MelihD-1953139 opened 3 months ago

MelihD-1953139 commented 3 months ago

So i fetched the repo and downloaded the files you mentioned and put them in the right place but I still get this error, it has something to do with the gradle version I think, do you might helping setting this up so i can work with this.

Screenshot 2024-05-19 at 18 00 19

And when i do run wtih stack trace: Screenshot 2024-05-19 at 18 01 42

And this is my project structure: Screenshot 2024-05-19 at 18 11 03

RivoLink commented 3 months ago

Hello,

Try with:

If it doesn't work, build with --stacktrace option and show me the results

cd <project_dir>
./gradlew build --stacktrace
MelihD-1953139 commented 3 months ago

Hi, (maybe easier to help trough discord:melihdemirel Screenshot 2024-05-20 at 12 21 34

So when I press ok, it tries to build again: Screenshot 2024-05-20 at 12 22 01

Screenshot 2024-05-20 at 12 22 19

and if i go back to Projext Structure, its empty: Screenshot 2024-05-20 at 12 22 47

i tried building with command but i dont have gradlew, no folder for that too. I tried installing gradle: Screenshot 2024-05-20 at 12 26 39

and ran gradle build --stacktrace:

`(base) ➜ aruco gradle build --stacktrace

FAILURE: Build failed with an exception.

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

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

For more on this, please refer to https://docs.gradle.org/8.7/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. `

SoonBe commented 2 months ago

I also faced the same problem. This issue occurs because the latest version of Android Studio uses Gradle version 8.0 or higher. If the gradle folder does not exist, create it manually and put the gradle-wrapper.properties file in it. You can copy and paste this file from another project you created. It is also okay to manually create the gradle-wrapper.properties file. Then, set distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip. This is how I solved the problem.