WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called by net.rubygrapefruit.platform.internal.NativeLibraryLoader in an unnamed module (file:/Users/230405/.gradle/wrapper/dists/gradle-9.2.1-bin/2t0n5ozlw9xmuyvbp7dnzaxug/gradle-9.2.1/lib/native-platform-0.22-milestone-29.jar) WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module WARNING: Restricted methods will be blocked in a future release unless native access is enabled Welcome to Gradle 9.2.1! Here are the highlights of this release: - Windows ARM support - Improved publishing APIs - Better guidance for dependency verification failures For more details see https://docs.gradle.org/9.2.1/release-notes.html Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details > Configure project :app WARNING: The option setting 'android.usesSdkInManifest.disallowed=false' is deprecated. The current default is 'true'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The option setting 'android.sdk.defaultTargetSdkToCompileSdkIfUnset=false' is deprecated. The current default is 'true'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The option setting 'android.enableAppCompileTimeRClass=false' is deprecated. The current default is 'true'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The option setting 'android.builtInKotlin=false' is deprecated. The current default is 'true'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The option setting 'android.newDsl=false' is deprecated. The current default is 'true'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The option setting 'android.r8.optimizedResourceShrinking=false' is deprecated. The current default is 'true'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The option setting 'android.defaults.buildfeatures.resvalues=true' is deprecated. The current default is 'false'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The option setting 'android.enableJetifier=true' is deprecated. The current default is 'false'. It will be removed in version 10.0 of the Android Gradle plugin. WARNING: The property android.dependency.excludeLibraryComponentsFromConstraints improves project import performance for very large projects. It should be enabled to improve performance. To suppress this warning, add android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false to gradle.properties WARNING: The property android.dependency.excludeLibraryComponentsFromConstraints improves project import performance for very large projects. It should be enabled to improve performance. To suppress this warning, add android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false to gradle.properties WARNING: The property android.dependency.excludeLibraryComponentsFromConstraints improves project import performance for very large projects. It should be enabled to improve performance. To suppress this warning, add android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false to gradle.properties WARNING: The property android.dependency.excludeLibraryComponentsFromConstraints improves project import performance for very large projects. It should be enabled to improve performance. To suppress this warning, add android.generateSyncIssueWhenLibraryConstraintsAreEnabled=false to gradle.properties > Task :app:preBuild UP-TO-DATE > Task :app:preDebugBuild UP-TO-DATE > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE > Task :app:generateDebugResValues > Task :app:dataBindingMergeDependencyArtifactsDebug > Task :app:generateDebugResources > Task :app:processDebugGoogleServices > Task :app:packageDebugResources > Task :app:processDebugNavigationResources > Task :app:parseDebugLocalResources > Task :app:mergeDebugResources > Task :app:javaPreCompileDebug > Task :app:dataBindingGenBaseClassesDebug > Task :app:checkDebugAarMetadata > Task :app:compileDebugNavigationResources > Task :app:mapDebugSourceSetPaths > Task :app:createDebugCompatibleScreenManifests > Task :app:extractDeepLinksDebug > Task :app:processDebugMainManifest > Task :app:processDebugManifest > Task :app:generateDebugAssets UP-TO-DATE > Task :app:mergeDebugAssets > Task :app:compressDebugAssets > Task :app:processDebugManifestForPackage > Task :app:checkDebugDuplicateClasses > Task :app:desugarDebugFileDependencies > Task :app:processDebugResources > Task :app:compileDebugJavaWithJavac Java compiler version 24 has deprecated support for compiling with source/target version 8. Try one of the following options: 1. [Recommended] Use Java toolchain with a lower language version 2. Set a higher source/target version 3. Use a lower version of the JDK running the build (if you're not using Java toolchain) For more details on how to configure these settings, see https://developer.android.com/build/jdks. To suppress this warning, set android.javaCompile.suppressSourceTargetDeprecationWarning=true in gradle.properties. warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. > Task :app:mergeExtDexDebug > Task :app:compileDebugJavaWithJavac FAILED /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:40: error: int cannot be dereferenced View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_medication, parent, false); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:73: error: int cannot be dereferenced textName = itemView.findViewById(R.id.text_med_name); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:74: error: int cannot be dereferenced textDosage = itemView.findViewById(R.id.text_med_dosage); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:75: error: int cannot be dereferenced textTime = itemView.findViewById(R.id.text_med_time); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:76: error: int cannot be dereferenced textNotes = itemView.findViewById(R.id.text_med_notes); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:77: error: int cannot be dereferenced checkBoxTaken = itemView.findViewById(R.id.checkbox_taken); ^ 6 errors 3 warnings [Incubating] Problems report is available at: file:///Users/230405/Desktop/papcuida/build/reports/problems/problems-report.html FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler output below. warning: [options] target value 8 is obsolete and will be removed in a future release warning: [options] source value 8 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:40: error: int cannot be dereferenced View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_medication, parent, false); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:73: error: int cannot be dereferenced textName = itemView.findViewById(R.id.text_med_name); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:74: error: int cannot be dereferenced textDosage = itemView.findViewById(R.id.text_med_dosage); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:75: error: int cannot be dereferenced textTime = itemView.findViewById(R.id.text_med_time); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:76: error: int cannot be dereferenced textNotes = itemView.findViewById(R.id.text_med_notes); ^ /Users/230405/Desktop/papcuida/app/src/main/java/com/example/cuida/ui/medication/MedicationAdapter.java:77: error: int cannot be dereferenced checkBoxTaken = itemView.findViewById(R.id.checkbox_taken); ^ 6 errors 3 warnings * Try: > Check your code and dependencies to fix the compilation error(s) > Run with --scan to generate a Build Scan (powered by Develocity). Deprecated Gradle features were used in this build, making it incompatible with Gradle 10. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/9.2.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 17s 25 actionable tasks: 25 executed