Code Monkey home page Code Monkey logo

notedelight's Issues

Can not build project at Windows !!

Dear Sir very thx your project

let me know how use SQLDelight & sqlite

i can build this projetc at mac & linux

but i get error at Windows !!

Could not create task ':shared:compileDebugJavaWithJavac !!

Caused by: org.gradle.jvm.toolchain.internal.NoToolchainAvailableException: No matching toolchains found for requested specification: {languageVersion=11, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
at org.gradle.jvm.toolchain.internal.JavaToolchainQueryService.downloadToolchain(JavaToolchainQueryService.java:180)
at org.gradle.jvm.toolchain.internal.JavaToolchainQueryService.lambda$query$2(JavaToolchainQueryService.java:146)

Failed building KotlinMPPGradleModel  jvmToolchain(11)  

Caused by: org.gradle.api.internal.provider.AbstractProperty$PropertyQueryException: Failed to calculate the value of task ':shared:compileDebugJavaWithJavac' property 'javaCompiler'.

Execution failed for task ':shared-jvm-util:compileKotlin'.

'compileJava' task (current target is 11) and 'compileKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

i try to modify 

 jvmToolchain(11)  -->  jvmToolchain(17)  at build.gradle.kts at  "shared" & "shared-compose-ui"
 
  toolchain { languageVersion.set(JavaLanguageVersion.of(11) --> toolchain { languageVersion.set(JavaLanguageVersion.of(17)  at build.gradle.kts at  "shared-jvm-util" 
  
  &
  
 mainClass = "MainKt" -->    mainClass = "com.softartdev.notedelight.MainKt"  at build.gradle.kts at  "desktop-compose-app"
(at  mac/linux   here also must change !!  ) 
 
 the JVM version is work !! 
 
 but   Android version still not build  
 
 i still get JavaWithJavac task error
 
 
 my os is  WIndows 10 pro x64 + AS (Flamingo + Giraffe )

Android Studio Flamingo | 2022.2.1 Patch 2
Build #AI-222.4459.24.2221.10121639, built on May 12, 2023
Runtime version: 17.0.6+0-b2043.56-9586694 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
gradle.version.catalogs.dynamic.support=true

Android Studio Giraffe | 2022.3.1

Build #AI-223.8836.35.2231.10406996, built on June 29, 2023
Runtime version: 17.0.6+0-b2043.56-10027231 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false

THX

desktop-compose-app JVM Crash at Windows & Mac

Dear Sir

if run "desktop-compose-app" at Windows ( must do some modify gradle) & Mac

add a new Note

and then Click "T"

will crash !!

java.lang.NullPointerException: ResultSet returned null for Note.sq:getById
at app.cash.sqldelight.ExecutableQuery.executeAsOne(Query.kt:189)
at com.softartdev.notedelight.shared.data.NoteUseCase.loadNote(NoteUseCase.kt:77)

image

image

unnamed
THX

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.