Comments (9)
@navaronbracke it's reproduced in 5.1.1 android build
from app_settings.
I was getting the same issue. I just upgraded my kotlin version to 1.8.0 & build was successful.
from app_settings.
@emadd Does this reproduce with version 5.1.1
, which was recently published? I can run the example app without issues.
from app_settings.
@pumano That is because older dependencies still use the kotlin-stdlib-jdk7 or kotlin-stdlib-jdk8. These two have been merged in newer releases of Kotlin.
See https://stackoverflow.com/a/75298544 for a better explanation.
But in short, you'll have to add this block (the Kotlin version is the one that you want to use, so 1.8.0 in this example)
dependencies {
constraints {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
}
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.0") {
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
}
}
}
to your build.gradle. If you have apply plugin: 'kotlin-android'
(which you probably do), remove these lines as well.
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
from app_settings.
@navaronbracke yes, thank you! I troubleshot it few hours ago and what I do:
update kotlin to 1.8.0
update gradle via android studio steps (few updates to gradle 8)
change kotlin-stdlib-jdk7
implementation to kotlin-stdlib
update target and source compatibility to java 17 (why not?)
It solve problem! @navaronbracke thank you!
from app_settings.
Java 17 is required for using Gradle 8 ;)
app_settings
supports that Gradle version, hence the namespace
attribute. But we have not yet switched over to using Gradle 8 in the package itself.
from app_settings.
I personally would downgrade to app_settings: 4.3.1
which does not produce this error, rather than modify default settings that could introduce bugs for the Flutter platform and other packages.
from app_settings.
@ex-tag You're going to have to keep your Java / Android Studio / Gradle / Android Gradle Plugin / Kotlin version up-to-date to avoid this kind of issue anyway. The problem is that the OP had outdated versions.
from app_settings.
@navaronbracke thank you for that issue) because of you I can update my project to 17 java and latest gradle :)
from app_settings.
Related Issues (20)
- On iOS, Can't Go Back to App After Opening Location Settings. HOT 3
- iOS request locationAlways HOT 1
- ios app crashing when microphone, speech-recognition, photos permission is toggled HOT 1
- Access to app's permission settings? HOT 2
- Opening OS system settings HOT 2
- Add MacOS support
- AppSettings 5.1.1 doesn't open notifications in iOS anymore HOT 1
- No implementation found for method openSettingsPanel HOT 7
- Add new type to open "Payment Methods" settings
- Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.9.0, expected version is 1.6.0. HOT 1
- Type 'UIApplication' has no member 'OpenNotificationSettingsURLString' HOT 2
- Only main settings screen on iOS HOT 2
- How to catch returned back to the app ?? HOT 1
- Privacy manifest file for iOS is missing HOT 1
- How to open TTS/Voices configuration for Android and iOS
- AppSettingsType.notification takes you to root level Settings page HOT 2
- Linux Support
- Awaiting doesn't work as expected
- AppSettingsType.vpn for ios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app_settings.