Yammine Yammine
04/22/2024, 10:37 PMOsman Saral
04/22/2024, 10:57 PMHyeonBae Ji
04/23/2024, 9:59 AMpablisco
04/23/2024, 10:03 AMMd Sadique Inam
04/23/2024, 10:32 AMOndrej Stanek
04/23/2024, 10:51 AMVaibhav Jaiswal
04/23/2024, 11:33 AMImageBitmap
to a file and later share that file in KMP?Iliyan Germanov
04/23/2024, 12:41 PM:wasmJsBrowserDistribution
Gradle task. However, the app only seems to work on Google Chrome (desktop). It's broken on:
• Safari (Desktop)
• Google Chrome (Android)
By broken I mean that click handling isn't working. Any ideas?
Here's the code:
https://github.com/Ivy-Apps/learnvishwateja
04/23/2024, 2:29 PMyigit
04/23/2024, 4:04 PMVictory
04/23/2024, 6:03 PMLaunching lib\main.dart on SM A315F in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':google_api_headers:compileDebugKotlin'.
> Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).
Consider using JVM Toolchain: <https://kotl.in/gradle/jvm/toolchain>
Learn more about JVM-target validation: <https://kotl.in/gradle/jvm/target-validation>
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.
BUILD FAILED in 1m 32s
Error: Gradle task assembleDebug failed with exit code 1
I really don't understand the documentation on the Kotlin's main page.
This is my app\build.gradle file
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
android {
namespace "com.example.vinedress_customer"
compileSdk 34
ndkVersion "26.3.11579264"
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (<https://developer.android.com/studio/build/application-id.html>).
applicationId "com.example.vinedress_customer"
// You can update the following values to match your application needs.
// For more information, see: <https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration>.
minSdkVersion 21
targetSdkVersion 34
multiDexEnabled true
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
implementation 'com.android.support:multidex:1.0.3'
}
Please, I need help. Thank you!Jonathan Morabito
04/23/2024, 6:30 PMAndrew Watson
04/23/2024, 6:57 PMld: Undefined symbols:
DeviceKit.Device.isPad.getter : Swift.Bool,
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone seen something similar?Benjamin
04/23/2024, 7:29 PMBradleycorn
04/23/2024, 7:33 PMdata class Race(val description: String)
I updated my project from Kotlin 1.9.10 to 1.9.21 and now I’m getting this warning:
var MyPackage.Race.description' was renamed to 'var MyPackage.Race.description_' because of a name collision with an another declaration 'func MyPackage.KotlinBase.description() -> Swift.String'. Consider resolving the conflict either by changing the name in Kotlin, or via the @ObjCName annotation. You can also suppress this warning using the 'SuppressSkieWarning.NameCollision' configuration. However using renamed declarations from Swift is not recommended because their name will change if the conflict is resolved.
(at val description: String defined in com.my.package.core.models.program.Race)
I’m not sure where this came from, nor the best way to resolve it?Eric
04/23/2024, 7:51 PMrebok
04/23/2024, 8:14 PMinit {...}
? If I make it wait for ex. 1 second with coroutines it works and the value is not null. The parameter is immutable.
the problem is with my blockingRules
parameter:
class BasicConsoleLogger(
val blockingRules: BlockingRulesConfigurationScope.() -> Unit = {}
) : Logger(<http://LogLevel.Info|LogLevel.Info>) { ... }
the link to the full file together with classes in the repo that it's using here -> https://github.com/libki-kt/LOGik/blob/main/Behaviour/ConsoleLoggingBehaviour/src/[…]lin/org/duckdns/libki/LOGik/consoleLogger/BasicConsoleLogger.kt
*the current code runs but if you remove the delay invokations and the launch {} from Logger
class then the error appears(NPE)Martin Gaynor
04/23/2024, 8:37 PMZyle Moore
04/24/2024, 2:37 AMSwapnil Musale
04/24/2024, 6:00 AMShekhar Shinde
04/24/2024, 8:35 AMVeeraraj V
04/24/2024, 9:54 AMKathrin Petrova
04/24/2024, 12:02 PMJakub Sieprawski
04/24/2024, 12:06 PMJayden King
04/24/2024, 2:29 PMAshu
04/24/2024, 3:58 PMDilip Sharma
04/24/2024, 4:13 PMcompose-plugin = "1.6.10-beta01"
java.lang.NoSuchFieldError: No static field hide_in_inspector_tag of type I in class Landroidx/compose/ui/R$id; or its superclasses (declaration of 'androidx.compose.ui.R$id' appears in /data/app/~~FkMo795TgvOEOkXibZQrtg==/-La19qXAt9nbbsO8lrq42xw==/base.apk)
at androidx.compose.material.ripple.RippleContainer.<init>(RippleContainer.android.kt:70)
at androidx.compose.material.ripple.AndroidRippleIndicationInstance.getOrCreateRippleContainer(Ripple.android.kt:255)
at androidx.compose.material.ripple.AndroidRippleIndicationInstance.addRipple(Ripple.android.kt:198)
at androidx.compose.material.ripple.Ripple$rememberUpdatedInstance$1$1.emit(Ripple.kt:138)
at androidx.compose.material.ripple.Ripple$rememberUpdatedInstance$1$1.emit(Ripple.kt:136)
Håkon Pettersen
04/24/2024, 6:00 PMShane Schaefer
04/24/2024, 6:27 PMDilip Sharma
04/24/2024, 6:55 PMkotlin.IllegalArgumentException: Navigation destination that matches route post-list/Answer Key cannot be found in the navigation graph ComposeNavGraph startDestination={Destination route=home}