Could not install grade distribution in Android Studio Koala
I am using the latest version of android atudio koala, when i try to create a new project i got this error: C
`ould not install gradle dependencies from: https://services.gradle
Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’ . android studio
when i run my project i get this message-
enter image description here”Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
“enter image description here
My application on avd emulator when i run the code the phone emulator just flashes like its in a infinity loop
what could be the problem ? i dont see nothing wrong in my code but this application is giving me black ad white flashes like its restarting every second
when i run my app from android studio 2023 jellyfish (java language) through an pixel 4 emulator im gettting an error minsdk
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [com.google.android.material:material:1.12.0] C:Usersjoshu.gradlecachestransforms-484c9c5e97f7f101ffd1750ba12f4c6d7transformedmaterial-1.12.0AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project’s minSdk version to at least 19,
or use tools:overrideLibrary=”com.google.android.material” to force usage (may lead to runtime failures)
In Android studio by java Applying filter ranges from 0.3 to 8.2 but EditText not accepted any number
This application to calculate level and volume there are EditText elements created in xml file and the type of EditText is numberdecimal it run ok but after Inputfilter created by ranges from (0.3 to 8.2 ) and (300 to 8200) the numbers are doub
and when application simulated the EditText not accepted any number and EditTexts type as below
java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.view.View.getVisibility()’ on a null object reference
CallActivity
Android Studio change button stroke
I set my button stroke color, but it takes the primary color instead of the one I set. How can I set my selection to what I want instead of the primary. I am using this xml on EditText also it takes correctly the color. I guess Button has default settings and the one of them is color:primary or something
No item can be selected in spinner
In my android app I use 3 different spinners, but one of them won’t show my selection.
When I click on it I can see all the item in it, but when I select one of them nothing shows in the spinner itself, and the app goes on as if I didn’t select anything.
The problem might be that I’m filling items in my spinner after selecting an item in another spinner, but the spinner shows items I would expect it to have when clicking on it, it just doesn’t select any of them when it should.
When rotate screen the program disappear in case of adding onsaveinstancestate and restore
When i added save instance state and restore instance state bundles to save values in activity life cycle java file on android studio when run the application and rotate the screen of mobile the application disappear
Android Studio Assignment
Scenario
You have been tasked to develop an application which manages student tasks. An instructor
should be a to add tasks for students. A task should have a taskID, taskName, dueDate, and
a module where the test is for. A module should have a moduleID, moduleName, and the
duration for the module. Modules should be added by an admin. Students should also be
added by the admin, and students should have a studentID, studentName, studentSurname,
and the Dob. Students and instructors should be able to sign into the system to access
different functionalities.
Functionality for students include:
• Access tasks created by the instructor.
• Indicate whether the tasks are completed or not.
Functionality for the instructor includes:
• Creating tasks for students.
Functionality for adminsinclude:
• Creating students’ records.
• Creating module records.
• Creating instructor records.
You are required to implement a login activity to control access between the different roles
(admin, instructor, and a student) and use a navigation activity to group the different activities
for a specific user role. Each functionality in the program should have its own activity.