28.0.0 and 28.+ Where is the difference
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.+'
}
28.0.0 and 28.+ Where is the difference?
gradle
add a comment |
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.+'
}
28.0.0 and 28.+ Where is the difference?
gradle
add a comment |
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.+'
}
28.0.0 and 28.+ Where is the difference?
gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.+'
}
28.0.0 and 28.+ Where is the difference?
gradle
gradle
edited Nov 23 '18 at 23:45
cricket_007
82.4k1143111
82.4k1143111
asked Nov 23 '18 at 23:39
kingwaykingway
112
112
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
28.0.0
is a specific version when 28.+
means 'take the newest version starting with 28
Due to the reference:
If the dependency is declared as a dynamic version (like 1.+), Gradle will resolve this to the highest available concrete version (like 1.2) in the repository. For Maven repositories, this is done using the maven-metadata.xml file, while for Ivy repositories this is done by directory listing.
think it is not "the newest version starting with X" - but "at least version X" ...the documentation might also have used a bad example, because it only covers a single major version number.
– Martin Zeitler
Nov 30 '18 at 20:42
add a comment |
you've probably chosen a bad example, because 27.+
would at a maximum resolve to version 28.0.0
. because of that, there is no difference in between 28.0.0
and 28.+
support libraries.
in general it's also bad practice not to use explicit version numbers, because it means slight loss of control. besides there won't ever be any version 28.+
released ...migrate to androidx
at version 1.0.0
(which exactly matches version 28.0.0
under the com.android.support
namespace).
api "com.android.support:recyclerview-v7:28.0.0"
would become:
api "androidx.recyclerview:recyclerview:1.0.0"
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%2f53453927%2f28-0-0-and-28-where-is-the-difference%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
28.0.0
is a specific version when 28.+
means 'take the newest version starting with 28
Due to the reference:
If the dependency is declared as a dynamic version (like 1.+), Gradle will resolve this to the highest available concrete version (like 1.2) in the repository. For Maven repositories, this is done using the maven-metadata.xml file, while for Ivy repositories this is done by directory listing.
think it is not "the newest version starting with X" - but "at least version X" ...the documentation might also have used a bad example, because it only covers a single major version number.
– Martin Zeitler
Nov 30 '18 at 20:42
add a comment |
28.0.0
is a specific version when 28.+
means 'take the newest version starting with 28
Due to the reference:
If the dependency is declared as a dynamic version (like 1.+), Gradle will resolve this to the highest available concrete version (like 1.2) in the repository. For Maven repositories, this is done using the maven-metadata.xml file, while for Ivy repositories this is done by directory listing.
think it is not "the newest version starting with X" - but "at least version X" ...the documentation might also have used a bad example, because it only covers a single major version number.
– Martin Zeitler
Nov 30 '18 at 20:42
add a comment |
28.0.0
is a specific version when 28.+
means 'take the newest version starting with 28
Due to the reference:
If the dependency is declared as a dynamic version (like 1.+), Gradle will resolve this to the highest available concrete version (like 1.2) in the repository. For Maven repositories, this is done using the maven-metadata.xml file, while for Ivy repositories this is done by directory listing.
28.0.0
is a specific version when 28.+
means 'take the newest version starting with 28
Due to the reference:
If the dependency is declared as a dynamic version (like 1.+), Gradle will resolve this to the highest available concrete version (like 1.2) in the repository. For Maven repositories, this is done using the maven-metadata.xml file, while for Ivy repositories this is done by directory listing.
edited Nov 30 '18 at 20:24
answered Nov 23 '18 at 23:43
m.antkowiczm.antkowicz
8,587928
8,587928
think it is not "the newest version starting with X" - but "at least version X" ...the documentation might also have used a bad example, because it only covers a single major version number.
– Martin Zeitler
Nov 30 '18 at 20:42
add a comment |
think it is not "the newest version starting with X" - but "at least version X" ...the documentation might also have used a bad example, because it only covers a single major version number.
– Martin Zeitler
Nov 30 '18 at 20:42
think it is not "the newest version starting with X" - but "at least version X" ...the documentation might also have used a bad example, because it only covers a single major version number.
– Martin Zeitler
Nov 30 '18 at 20:42
think it is not "the newest version starting with X" - but "at least version X" ...the documentation might also have used a bad example, because it only covers a single major version number.
– Martin Zeitler
Nov 30 '18 at 20:42
add a comment |
you've probably chosen a bad example, because 27.+
would at a maximum resolve to version 28.0.0
. because of that, there is no difference in between 28.0.0
and 28.+
support libraries.
in general it's also bad practice not to use explicit version numbers, because it means slight loss of control. besides there won't ever be any version 28.+
released ...migrate to androidx
at version 1.0.0
(which exactly matches version 28.0.0
under the com.android.support
namespace).
api "com.android.support:recyclerview-v7:28.0.0"
would become:
api "androidx.recyclerview:recyclerview:1.0.0"
add a comment |
you've probably chosen a bad example, because 27.+
would at a maximum resolve to version 28.0.0
. because of that, there is no difference in between 28.0.0
and 28.+
support libraries.
in general it's also bad practice not to use explicit version numbers, because it means slight loss of control. besides there won't ever be any version 28.+
released ...migrate to androidx
at version 1.0.0
(which exactly matches version 28.0.0
under the com.android.support
namespace).
api "com.android.support:recyclerview-v7:28.0.0"
would become:
api "androidx.recyclerview:recyclerview:1.0.0"
add a comment |
you've probably chosen a bad example, because 27.+
would at a maximum resolve to version 28.0.0
. because of that, there is no difference in between 28.0.0
and 28.+
support libraries.
in general it's also bad practice not to use explicit version numbers, because it means slight loss of control. besides there won't ever be any version 28.+
released ...migrate to androidx
at version 1.0.0
(which exactly matches version 28.0.0
under the com.android.support
namespace).
api "com.android.support:recyclerview-v7:28.0.0"
would become:
api "androidx.recyclerview:recyclerview:1.0.0"
you've probably chosen a bad example, because 27.+
would at a maximum resolve to version 28.0.0
. because of that, there is no difference in between 28.0.0
and 28.+
support libraries.
in general it's also bad practice not to use explicit version numbers, because it means slight loss of control. besides there won't ever be any version 28.+
released ...migrate to androidx
at version 1.0.0
(which exactly matches version 28.0.0
under the com.android.support
namespace).
api "com.android.support:recyclerview-v7:28.0.0"
would become:
api "androidx.recyclerview:recyclerview:1.0.0"
edited Nov 24 '18 at 0:21
answered Nov 23 '18 at 23:53
Martin ZeitlerMartin Zeitler
17.6k34169
17.6k34169
add a comment |
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%2f53453927%2f28-0-0-and-28-where-is-the-difference%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