So, do you have a link with a simple working examp...
# android
m
So, do you have a link with a simple working example, please?
😶 1
t
which codelabs do not work? i have found WorkManager to be very simple to use 😄 what version of WorkManager are you dealing with?
here they propose a code to start with and if you download it and try to run it inside android studio you get compile error
t
which version of android studio are you using
m
My android studio is up-to-date:
Android Studio Dolphin | 2021.3.1 Patch 1
https://github.com/googlecodelabs/android-workmanager here the code. It's almost one year old
t
are you using the starter code or the complete?
m
the starter
t
what error do you see ?
m
The code suggested in step 2 rises this error: Caused by: org.gradle.api.internal.tasks.properties.PropertyEvaluationException: Error while evaluating property 'filteredArgumentsMap' of task 'appkaptGenerateStubsDebugKotlin'
t
Step 2 - Run the app
is that the step 2?
m
yes, when I try t orun it, I get the error above
t
i have just downloaded the starter code, built and run it and its fine
did you make any gradle changes or any other Android config changes ?
m
no, just download the code and try to run it
t
strange... in your android studio preferences what version of java do you have configured?
i have 11.0.13
the version of android studio i am using is ...
Android Studio Dolphin | 2021.3.1 RC 1
Build #AI-213.7172.25.2113.8913347, built on August 6, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 8192M
Cores: 12
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.android.aas (3.5.1)
so we both have same starter code and android studio version however it works on my machine and not on yours
it must be some environment issue on your development machine
have you tried invaldate cache and restarting Android Studio?
Copy code
dependencies {
    classpath 'com.android.tools.build:gradle:7.1.1'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
}
m
thanks, I'll check what you propose
👍 1
• Same JDK • tryed to clear the cache
Android studio proposed my to update the grael plugin --> i did it
tryed to clean the project
when I try to rebuil the project, I get an error different:
Transform's input file does not exist: /home/mex/Android/Sdk/build-tools/30.0.3/renderscript/lib/androidx-rs.jar. (See https://issuetracker.google.com/issues/158753935)
t
can you paste your
gradle.properies
file here?
this is mine 😄
Copy code
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# <http://www.gradle.org/docs/current/userguide/build_environment.html>

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# <http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects>
# org.gradle.parallel=true

# Configuration on demand is not supported by the current version of the Android Gradle plugin
# since you are using Gradle version 4.6 or above.
org.gradle.configureondemand=false
android.useAndroidX=true
android.enableJetifier=true
m
org.gradle.jvmargs=-Xmx1536m
org.gradle.configureondemand=false android.useAndroidX=true android.enableJetifier=true
t
android-workmanager-start_kotlin 2.zip
m
they look the same
t
yes
that zip is my working version i have upgrade the gradle plugin, all the gradle deps and set kotlin version to 1.7.10 it works fine for me
it should work fine for you too
m
I have uninstalled and re-installed the android studio and now it wworks
thank you very much, without your comments I wouldn't realized that the problem was in my android studio configuration/installation
t
glad you got it working 😄