-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Android Version #717
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c631714
changed Android version
afischerdev dec6cc8
changed gradle lib versions
afischerdev b1e9208
added compiler params
afischerdev 8d22a2d
added new gradle app name
afischerdev f289b0c
suppressed "deprecation"
afischerdev 1f2f655
changed printStackTrace to log
afischerdev e379b7a
changed android tests for "deprecation"
afischerdev b234d48
changed to android 34
afischerdev e46444c
updated revision doc
afischerdev 15bf08a
prepared the version change
afischerdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current target API level requirement is 34:
https://developer.android.com/google/play/requirements/target-sdk
35 will not be required until August 2025.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devemux86
That is correct. But my Studio tells me 'not targeting the latest versions of Android' when I use API level 34.
Anyway the main problem I see is the
minSdkVersion
.With using new libraries, level 21 is required.
When going back with e.g.
androidx.appcompat:appcompat:1.6.1
we could go back to level 19. This will bring an error:Cannot fit requested classes in a single dex file
for deprecated classes.But setting
minifyEnabled false
for debug mode takes care of this. And should not bring to much trouble in development because we set all BRouter classes tokeep
in last update.What do you think? Going back?
BTW: Is there still an IDEA problem with
classpath 'com.android.tools.build:gradle:8.3.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@afischerdev
The latest stable version is compile and target SDK 34.
Android 15 will be released the next months.
This should be normal, we can update the dependencies and use min sdk 21.
Unfortunately we still have to use version 8.2.2 for IDEA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I would prefer that. For me it is cleaner.
@ALL
Other comments for the min version API level 21?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API 21 was released 10 years ago and is the latest version supported by Google Play Services. This shouldn't affect many devices so I think it's a good idea to increase the minSdkVersion. I think targetSdkVersion should be API 34 because API 35 is only released as preview.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change the version back. I don't mind.
But no, there is no preview Android installed, it's a 35 rev. 1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Android 15 is currently on Beta 4.
https://developer.android.com/about/versions/15/overview
Also we need first to compile with sdk 35 and then advance the target to 35.
There is no need to hurry until August 2025.
The current requirement for August 2024 is just the target 34.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDEA has been updated and now supports the latest Android Gradle plugin
8.5.1
.