Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit ec22ac0

Browse files
author
Chris Board
authored
Update README.md
1 parent fef5cb0 commit ec22ac0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,15 @@ Performing a query to return a result set is pretty much the same as above, the
388388
}
389389
});
390390
```
391+
392+
## Troubleshooting
393+
If you have added the library and the gradle sync works successfully but you are getting errors like `cannot resolve symbol` make sure that the imports at the top of the class file have been referenced.
394+
395+
This can be done in one of two ways:
396+
1. Put the cursor somewhere in the area of code which is showing red and hit Ctrl + Alt + Enter. Android Studio will provide tips on how to fix - one of them being to import the class. Select import and the error should go away.
397+
2. You can add the following two lines:
398+
```
399+
import com.BoardiesITSolutions.AndroidMySQLConnector.*;
400+
import com.BoardiesITSolutions.AndroidMySQLConnector.Exceptions.*;
401+
```
402+
which will import all available classes from the library. However, this tends to be bad practice as only what's needed from the library by your class should be imported. You can get round this by adding the two lines above, then when your class is finished, you can then do Ctrl + Alt + O which will organise your imports into what ones are required instead of a wildcard import.

0 commit comments

Comments
 (0)