使用 PersistentCookieJar实现用户信息cookie持久化,Failed to resolve: com.github.franmontiel:PersistentCookieJar:

顾乐心
2023-12-01

Error:(52, 13) Failed to resolve: com.github.franmontiel:PersistentCookieJar:v1.0.1

1.在github中https://github.com/franmontiel/PersistentCookieJar的第一步记载中需先在project的gradle中加入

allprojects {
    repositories {
        ...
        //cookie持久化jar包 添加以下语句
        maven { url "https://jitpack.io" }
    }
}

2.app.gradle中加入依赖引用:

    //cookie持久化jar包
    compile 'com.github.franmontiel:PersistentCookieJar:v1.0.1'
 类似资料: