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

file to build #1

Open
sagekobe opened this issue Oct 29, 2024 · 3 comments
Open

file to build #1

sagekobe opened this issue Oct 29, 2024 · 3 comments

Comments

@sagekobe
Copy link

cannot resolve acmerobotics: import com.acmerobotics.dashboard.config.Config; fail

@BrandonKirbyson
Copy link
Owner

You need to gradle build in something like IntelliJ. And just curious, why are you trying to build the code? It is very specifically intended to run on Weeble so building won't do anything unless you have some sort of ftc robot yourself.

@sagekobe
Copy link
Author

You need to gradle build in something like IntelliJ. And just curious, why are you trying to build the code? It is very specifically intended to run on Weeble so building won't do anything unless you have some sort of ftc robot yourself.

Very thanks for your response, I use the android studio open the code and connect to the control hub. and then run team code . then there are many mistakes(like this :cannot resolve acmerobotics: import com.acmerobotics.dashboard.config.Config). So I don't know what could to do

@BrandonKirbyson
Copy link
Owner

BrandonKirbyson commented Oct 29, 2024

Ok, first you might need to add a file local.properties and in it just have one line of sdk.dir=path\to\androidsdk (replace with your path, backslashes and no quotes). Then open up build.gradle in the TeamCode folder and you should see a prompt to sync project or something, which you should run.

But then you need a setup similar to Weeble and the control hub config has to have all the right motors and servos or the opmodes will error. Do you have some sort of robot?

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