QuisApp / flutter_contacts

MIT License
83 stars 138 forks source link

Latest flutter stable version is breaking with this plugin use. Urgently need fix! #158

Closed zuhabul closed 1 month ago

zuhabul commented 4 months ago

Execution failed for task ':flutter_contacts:compileDebugKotlin'.

'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.

flutter doctor
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-x64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.3) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.2) [✓] VS Code (version 1.88.1) [✓] VS Code (version 1.79.0-insider) [✓] Connected device (4 available) ! Error: Browsing on the local area network for Hridoy’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27) [✓] Network resources

• No issues found!

arabnology commented 4 months ago

Hey, any solution ?

We are waiting this to be fixed ASAP!!

arabnology commented 4 months ago

Hello, any news about this ??

arabnology commented 4 months ago

Is the package developer still active ?

rignaneseleo commented 3 months ago

Same error here

arabnology commented 3 months ago

Same error here

Unfortunately, the only solution for now is to fallback to Gradle version 7.x.x.

joachim-quis commented 3 months ago

@arabnology @rignaneseleo @zuhabul can you try version 1.1.8?

himsarevenus commented 3 months ago

still happens in latest version @joachim-quis

arabnology commented 3 months ago

@arabnology @rignaneseleo @zuhabul can you try version 1.1.8?

still happens in latest version :(, please do something

himsarevenus commented 3 months ago

I found a workaround @arabnology @joachim-quis

https://github.com/acoutts/flutter_libphonenumber/issues/70

project(':flutter_contacts').afterEvaluate { project(':flutter_contacts').android { compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = '17' } } }

zuhabul commented 3 months ago

I found a workaround @arabnology @joachim-quis

acoutts/flutter_libphonenumber#70

project(':flutter_contacts').afterEvaluate { project(':flutter_contacts').android { compileOptions { sourceCompatibility JavaVersion.VERSION_17 targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = '17' } } }

This workaround solution works!

cyborpaul commented 1 month ago

Any update about it?

cyborpaul commented 1 month ago

Try to use this: flutter_contacts_plus: ^1.3.0 with min sdk 23

joachim-quis commented 1 month ago

Hi all - thanks for your patience and the recommended solutions.

This should be fixed in version 1.1.9. If it is not, please let me know, and reopen this conversation.