简体   繁体   中英

How to install Sugar ORM on my android project

Someone suggested me to use Sugar ORM and provided a link to the website.

http://satyan.github.io/sugar/

In the website it tells me how to download the thing:

compile 'com.github.satyan:sugar:1.3'

I guess I need to put that in one of my gradle files. But which one? And where to put it in the file? I guess the most possible two are:

build.gradle (Project:MyProjetName)
build.gradle (Module:app)

Can you tell me where to put the statement?

You need to add it to the build.gradle for Module:app. It will go in the dependencies block.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM