Inheriting the DataSupport class in "The First Line of Code" reports red issues

Error original picture

insert image description here
So I decisively went online to find the answer. The result was that the DataSupport class had been deprecated and replaced by the LitePalSupport class.
But after using it, an error was reported
insert image description here
. Why was the dependency already referenced?
insert image description here
After searching online for a while, I finally found the first solution. After downloading GitCode , unzip it and find the downloads directory.

Find the corresponding jar package and put it in, then right-click the current jar package, click Add As Library to load it, and then add dependencies to app/build.gradle

insert image description here

insert image description here

insert image description here
The second case has not been found yet. If you are bothering me, can you tell me?

Guess you like

Origin blog.csdn.net/weixin_51966599/article/details/127692725