Coder Social home page Coder Social logo

Comments (18)

WardBenjamin avatar WardBenjamin commented on June 16, 2024

I have seen this error before. You most likely haven't installed the correct Android SDK versions. Post a picture of your SDK Manager? You need to install Build Tools v21 and a few tools.

from ftc_app.

KevinEmery avatar KevinEmery commented on June 16, 2024

@WardBenjamin @Based-Brian10 You need to have the following SDK items installed according to the project configuration.

API 19 (SDK and Google APIs for ARM)
Build Tools v 21.1.2

This is contrary to the manual which instructs you to install API 21, but if you do this you will then need to install API 19 in order to run the project as it exists currently

from ftc_app.

jaxnb avatar jaxnb commented on June 16, 2024

Brian, you may have not run a gradle build yet. Dependencies such as the ftc sdk won't work until you build your project.

Thank you,

  • Jaxon Brown

On Sep 29, 2015, at 7:21 PM, Kevin Emery [email protected] wrote:

@WardBenjamin @Based-Brian10 You need to have the following SDK items installed according to the project configuration.

API 19 (SDK and Google APIs for ARM)
Build Tools v 21.1.2

This is contrary to the manual which instructs you to install API 21, but if you do this you will then need to install API 19 in order to run the project as it exists currently


Reply to this email directly or view it on GitHub.

from ftc_app.

erinzm avatar erinzm commented on June 16, 2024

Sync with Gradle (running a build will do this).

from ftc_app.

cthulhusec avatar cthulhusec commented on June 16, 2024

@Based-Brian10 If you are still having this issue; It appears that you have an error in your build.gradle, take a look at that and if you can not figure it out please post a screencap here so that we may help you out. I wish you luck!

from ftc_app.

calebsander avatar calebsander commented on June 16, 2024

To second what others have been saying, we have seen this occur frequently before doing a Gradle Sync/Build. If you click "Build" (in the topmost menu) and then "Make Project", it should fix itself after a few seconds (wait until "Gradle Build Running" disappears from the bottom bar).

from ftc_app.

drey7925 avatar drey7925 commented on June 16, 2024

I've experienced the case where a misconfigured firewall/content filter combined with JVM certificate validation with HTTPS caused this issue as Gradle tried to fetch artifacts from JCenter. Could you post the Gradle log, as seen by "Show logs in explorer", as a gist, and providing a link to that gist here?

from ftc_app.

 avatar commented on June 16, 2024

robotic capture
@buddytex @calebsander @MeRPG

from ftc_app.

 avatar commented on June 16, 2024

sdk managers
tools
@WardBenjamin
@KevinEmery

from ftc_app.

 avatar commented on June 16, 2024

@hexafraction I can't understand your question.

from ftc_app.

calebsander avatar calebsander commented on June 16, 2024

You are putting Java code in your gradle script, so it obviously is going to fail. Reset FtcRobotController/build.gradle to how it was and then put your MecanumDefaultCode in its own .java file.

from ftc_app.

 avatar commented on June 16, 2024

@calebsander how can I reset the code?

from ftc_app.

calebsander avatar calebsander commented on June 16, 2024

Download the file from this repository and replace your current version with it.

from ftc_app.

 avatar commented on June 16, 2024

@calebsander How do I put my Mecanum code in its own file?

from ftc_app.

jaxnb avatar jaxnb commented on June 16, 2024

@Based-Brian10 @calebsander
Or you could use the 'git reset' command in git bash. https://git-scm.com/docs/git-reset

@Based-Brian10 Here is how you should go about creating a new op mode:

Creating a Class
Creating a Class
Basic OPMode code

Also be careful. The code visible in one of the screenshots you sent is NOT java. It actually looks like a wierd mixture between Java and WPILib from FRC last season.

More information on how to set Android Studio/IntelliJ IDEA up for FTC can be found here:
https://raw.githubusercontent.com/ftctechnh/ftc_app/master/doc/tutorial/FTCTraining_Manual.pdf
Especially from pages 87-108.

Hope I could help.

from ftc_app.

ftctechnh avatar ftctechnh commented on June 16, 2024

Thanks to everyone who has assisted in this thread. I am going to close this item out. We would like to use this database to track verified issues/bugs with the systems. Requests for assistance should be directed to the FTC Technology forum, or in this case to the Android Studio subforum:

http://ftcforum.usfirst.org/forumdisplay.php?159-Android-Studio

from ftc_app.

TheOutlaws avatar TheOutlaws commented on June 16, 2024

And I am having troubles my team wants me to program the robot to go straight then turn and thiks is my first year doing android could I get a push in the right direction for this program

from ftc_app.

drey7925 avatar drey7925 commented on June 16, 2024

@TheOutlaws This is not the correct venue for support. Please use the FTC official subforums for: New FTC Technology and New FTC Technology > Android Studio.

from ftc_app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.