acmerobotics / ftc-dashboard

React-based web dashboard designed for FTC
https://acmerobotics.github.io/ftc-dashboard
Other
171 stars 129 forks source link

include dashboard-0.4.4-SNAPSHOT.aar not working #79

Closed wangxdflight closed 2 years ago

wangxdflight commented 2 years ago

I am trying to compile my own version of dashboard. Tried "publishToMavenLocal " as instructed in the documentation, it worked well. Is this the only approach? I also tried to include dashboard in build.dependencies.gradle as below. But it doesn't work. Disable/enable dashboard is not shown in the menu, and web browser shows "Mime type unknown: uri='/dash' path='dash'". Web server is indeed running though, and the information on "Program&Manage" page looks complete.

Looks like the local repo folder has several other files as well. Is it possible to make it work without using local repo approach?

//implementation 'com.acmerobotics.dashboard:dashboard:0.4.4'
implementation files('../libs/dashboard-0.4.4-SNAPSHOT.aar')
rbrott commented 2 years ago

I haven't reproduced the issue, but I suspect you're missing some dependencies specified in the POM. You may need to add these lines.

wangxdflight commented 2 years ago

Great...it works after adding these lines....It was weird it didn't complain in build process.

Appreciate your prompt help!