#dependency suddenly stopped working

21 messages · Page 1 of 1 (latest)

stable iron
#
    public static void printBlockChain(){
        AsciiTable at = new AsciiTable();
        at.addRule();
        at.addRow("Index","Hashcode","User","Transaction","Time");
        for (Block block : blockChain.getBlocks()) {
            at.addRule();
            at.addRow(block.getIndex(),block.getHash(),block.getTransactions()[0],block.getTransactions()[1],block.getTransactions()[2]);
        }
        at.addRule();
        String rend= at.render();
        System.out.println(rend);
    }```
I use this AsciiTable dependency, the import no longer function i get this error:
```java: package de.vandermeer.asciitable does not exist```
and 
```java: cannot find symbol
  symbol:   class AsciiTable
  location: class org.CS446.Controller```
austere relicBOT
#

This post has been reserved for your question.

Hey @stable iron! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

stable iron
#
        <!-- https://mvnrepository.com/artifact/de.vandermeer/asciitable -->
        <dependency>
            <groupId>de.vandermeer</groupId>
            <artifactId>asciitable</artifactId>
            <version>0.3.2</version>
        </dependency>
wise musk
#

re-sync your dependencies

stable iron
#

i did

#

it stopped working for 0 reason

wise musk
#

what were the latest changes you made

stable iron
#

none 0

#

i restarted the application and it started showing the error

wise musk
#

are you in offline mode?

stable iron
#

no what is that

wise musk
#

Got to maven tab

#

and check if you're in offline mode

#

sometimes you go into that and wollah! you're not using internet to download dependencies

stable iron
#

ok i got it

#

it works

#

i moved a wrong iml into the project

wise musk
#

ok

#

issue fixed?

#

good luck on your presentation