Android Crashes while upgrading the Picasso Library
I'm trying to upgrade Picasso Library on my Android app from version 2.5.2
to the latest version of 2.71828
.
I'm using below versions of other concerning libraries.
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.7.2'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.squareup.retrofit:retrofit:1.9.0'
implementation 'com.google.code.gson:gson:2.6.1'
App crashes when I'm trying to launch, with the following Error.
java.lang.NoSuchMethodError: No interface method readUtf8LineStrict(J)Ljava/lang/String; in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.app.dev-64CjLuqx-zjNoiTFWtBRvA==/base.apk!classes2.dex)
Please advise me what am I doing wrong.
android picasso okhttp3
add a comment |
I'm trying to upgrade Picasso Library on my Android app from version 2.5.2
to the latest version of 2.71828
.
I'm using below versions of other concerning libraries.
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.7.2'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.squareup.retrofit:retrofit:1.9.0'
implementation 'com.google.code.gson:gson:2.6.1'
App crashes when I'm trying to launch, with the following Error.
java.lang.NoSuchMethodError: No interface method readUtf8LineStrict(J)Ljava/lang/String; in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.app.dev-64CjLuqx-zjNoiTFWtBRvA==/base.apk!classes2.dex)
Please advise me what am I doing wrong.
android picasso okhttp3
show me your whole build.gradle file of app
– Neha Chauhan
Nov 23 '18 at 10:57
2
This looks more like class missing from okhttp
– Karan Mer
Nov 23 '18 at 11:00
1
upgrade your retrofit and okhttp versions with latest.
– Karan Mer
Nov 23 '18 at 11:07
In picasso library there are many changes when you upgrade to 2.71828 compared to previous versions, i faced some issue regarding the method with(context) in latest version
– Vikash Bijarniya
Nov 23 '18 at 11:20
add a comment |
I'm trying to upgrade Picasso Library on my Android app from version 2.5.2
to the latest version of 2.71828
.
I'm using below versions of other concerning libraries.
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.7.2'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.squareup.retrofit:retrofit:1.9.0'
implementation 'com.google.code.gson:gson:2.6.1'
App crashes when I'm trying to launch, with the following Error.
java.lang.NoSuchMethodError: No interface method readUtf8LineStrict(J)Ljava/lang/String; in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.app.dev-64CjLuqx-zjNoiTFWtBRvA==/base.apk!classes2.dex)
Please advise me what am I doing wrong.
android picasso okhttp3
I'm trying to upgrade Picasso Library on my Android app from version 2.5.2
to the latest version of 2.71828
.
I'm using below versions of other concerning libraries.
implementation 'com.squareup.okhttp:okhttp-urlconnection:2.7.2'
implementation 'com.squareup:otto:1.3.8'
implementation 'com.squareup.retrofit:retrofit:1.9.0'
implementation 'com.google.code.gson:gson:2.6.1'
App crashes when I'm trying to launch, with the following Error.
java.lang.NoSuchMethodError: No interface method readUtf8LineStrict(J)Ljava/lang/String; in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/com.app.dev-64CjLuqx-zjNoiTFWtBRvA==/base.apk!classes2.dex)
Please advise me what am I doing wrong.
android picasso okhttp3
android picasso okhttp3
edited Nov 24 '18 at 13:39
Alireza Noorali
1,374634
1,374634
asked Nov 23 '18 at 10:48
user3773337user3773337
3912826
3912826
show me your whole build.gradle file of app
– Neha Chauhan
Nov 23 '18 at 10:57
2
This looks more like class missing from okhttp
– Karan Mer
Nov 23 '18 at 11:00
1
upgrade your retrofit and okhttp versions with latest.
– Karan Mer
Nov 23 '18 at 11:07
In picasso library there are many changes when you upgrade to 2.71828 compared to previous versions, i faced some issue regarding the method with(context) in latest version
– Vikash Bijarniya
Nov 23 '18 at 11:20
add a comment |
show me your whole build.gradle file of app
– Neha Chauhan
Nov 23 '18 at 10:57
2
This looks more like class missing from okhttp
– Karan Mer
Nov 23 '18 at 11:00
1
upgrade your retrofit and okhttp versions with latest.
– Karan Mer
Nov 23 '18 at 11:07
In picasso library there are many changes when you upgrade to 2.71828 compared to previous versions, i faced some issue regarding the method with(context) in latest version
– Vikash Bijarniya
Nov 23 '18 at 11:20
show me your whole build.gradle file of app
– Neha Chauhan
Nov 23 '18 at 10:57
show me your whole build.gradle file of app
– Neha Chauhan
Nov 23 '18 at 10:57
2
2
This looks more like class missing from okhttp
– Karan Mer
Nov 23 '18 at 11:00
This looks more like class missing from okhttp
– Karan Mer
Nov 23 '18 at 11:00
1
1
upgrade your retrofit and okhttp versions with latest.
– Karan Mer
Nov 23 '18 at 11:07
upgrade your retrofit and okhttp versions with latest.
– Karan Mer
Nov 23 '18 at 11:07
In picasso library there are many changes when you upgrade to 2.71828 compared to previous versions, i faced some issue regarding the method with(context) in latest version
– Vikash Bijarniya
Nov 23 '18 at 11:20
In picasso library there are many changes when you upgrade to 2.71828 compared to previous versions, i faced some issue regarding the method with(context) in latest version
– Vikash Bijarniya
Nov 23 '18 at 11:20
add a comment |
2 Answers
2
active
oldest
votes
I had the same problem after changing the version
After replacing
Picasso.with(context)...
by
Picasso.get()...
I did a clean of the project and it worked back
add a comment |
The same thing happened to me. Maybe you're trying to import Picasso as the official documentation indicates:
Gradle
implementation 'com.squareup.picasso3:picasso:2.71828'
Take off the number three and try this way:
implementation 'com.squareup.picasso:picasso:2.71828'
You most also change:
Picasso.with(MainActivity.this)
.load(imgurl)
.into(imageV);
To:
Picasso.get()
.load(imgurl)
.into(imageV);
This is my statement, implementation 'com.squareup.picasso:picasso:2.71828'
– user3773337
Nov 27 '18 at 20:38
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445230%2fandroid-crashes-while-upgrading-the-picasso-library%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had the same problem after changing the version
After replacing
Picasso.with(context)...
by
Picasso.get()...
I did a clean of the project and it worked back
add a comment |
I had the same problem after changing the version
After replacing
Picasso.with(context)...
by
Picasso.get()...
I did a clean of the project and it worked back
add a comment |
I had the same problem after changing the version
After replacing
Picasso.with(context)...
by
Picasso.get()...
I did a clean of the project and it worked back
I had the same problem after changing the version
After replacing
Picasso.with(context)...
by
Picasso.get()...
I did a clean of the project and it worked back
answered Nov 24 '18 at 12:07
gustavogustavo
1915
1915
add a comment |
add a comment |
The same thing happened to me. Maybe you're trying to import Picasso as the official documentation indicates:
Gradle
implementation 'com.squareup.picasso3:picasso:2.71828'
Take off the number three and try this way:
implementation 'com.squareup.picasso:picasso:2.71828'
You most also change:
Picasso.with(MainActivity.this)
.load(imgurl)
.into(imageV);
To:
Picasso.get()
.load(imgurl)
.into(imageV);
This is my statement, implementation 'com.squareup.picasso:picasso:2.71828'
– user3773337
Nov 27 '18 at 20:38
add a comment |
The same thing happened to me. Maybe you're trying to import Picasso as the official documentation indicates:
Gradle
implementation 'com.squareup.picasso3:picasso:2.71828'
Take off the number three and try this way:
implementation 'com.squareup.picasso:picasso:2.71828'
You most also change:
Picasso.with(MainActivity.this)
.load(imgurl)
.into(imageV);
To:
Picasso.get()
.load(imgurl)
.into(imageV);
This is my statement, implementation 'com.squareup.picasso:picasso:2.71828'
– user3773337
Nov 27 '18 at 20:38
add a comment |
The same thing happened to me. Maybe you're trying to import Picasso as the official documentation indicates:
Gradle
implementation 'com.squareup.picasso3:picasso:2.71828'
Take off the number three and try this way:
implementation 'com.squareup.picasso:picasso:2.71828'
You most also change:
Picasso.with(MainActivity.this)
.load(imgurl)
.into(imageV);
To:
Picasso.get()
.load(imgurl)
.into(imageV);
The same thing happened to me. Maybe you're trying to import Picasso as the official documentation indicates:
Gradle
implementation 'com.squareup.picasso3:picasso:2.71828'
Take off the number three and try this way:
implementation 'com.squareup.picasso:picasso:2.71828'
You most also change:
Picasso.with(MainActivity.this)
.load(imgurl)
.into(imageV);
To:
Picasso.get()
.load(imgurl)
.into(imageV);
edited Nov 26 '18 at 20:56
answered Nov 26 '18 at 20:48
Jose QJose Q
5010
5010
This is my statement, implementation 'com.squareup.picasso:picasso:2.71828'
– user3773337
Nov 27 '18 at 20:38
add a comment |
This is my statement, implementation 'com.squareup.picasso:picasso:2.71828'
– user3773337
Nov 27 '18 at 20:38
This is my statement, implementation 'com.squareup.picasso:picasso:2.71828'
– user3773337
Nov 27 '18 at 20:38
This is my statement, implementation 'com.squareup.picasso:picasso:2.71828'
– user3773337
Nov 27 '18 at 20:38
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53445230%2fandroid-crashes-while-upgrading-the-picasso-library%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
show me your whole build.gradle file of app
– Neha Chauhan
Nov 23 '18 at 10:57
2
This looks more like class missing from okhttp
– Karan Mer
Nov 23 '18 at 11:00
1
upgrade your retrofit and okhttp versions with latest.
– Karan Mer
Nov 23 '18 at 11:07
In picasso library there are many changes when you upgrade to 2.71828 compared to previous versions, i faced some issue regarding the method with(context) in latest version
– Vikash Bijarniya
Nov 23 '18 at 11:20