Relative Content

Tag Archive for kotlinandroid-studio

Class not working in Kotlin Android Studio JellyFish

I am trying to run this specific file and it will not allow me to run it. It states that init should return void. I’m not too sure what that means but it doesn’t sound correct. Either way it will not allow me to run the program. Anyhelp will do. I feel as though if this will not run, I will be missing out on an integral piece of the learning experience!

Android Studio -What are these

I am new to Android kotlin programming. When trying to set an on click listener, android studio helps with lot of suggestions. I was curious about the suggested list. The list goes on and on.

Issue with the app couldnt capture username and display it at the result activity

package com.example.csc2074_19051374_assignment import android.content.Intent import android.os.Bundle import android.text.LoginFilter.UsernameFilterGMail import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import android.view.View import android.widget.Button import android.widget.TextView import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import com.google.android.material.color.utilities.Score class Result : AppCompatActivity() { private lateinit var textViewName: TextView private lateinit var textViewScore: TextView private lateinit var finishButton: Button override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_result) textViewName = findViewById(R.id.tv_name) textViewScore […]

How to prevent Android Studio from adding a space between tab indents and text on every line?

I am developing in Android Studio, using entirely Kotlin classes. I prefer to use tabs for indentation. If there is some grave sin I’m committing here, feel free to let me know ;). Whenever I press Enter, Android Studio adds the proper amount of tabs for indentation, then adds a single space. It’s annoying and makes my new line not line up with the others! The space is not auto-deleted when i start to type.

Android Studio Jpeg Kit

It seems like you’re encountering dependency resolution issues when trying to build your Android Studio project, particularly with the CameraKit library. Although your application’s APK functions correctly and you can take photos, you’re unable to debug the project due to these errors.

is it possible to switch from get started with cloud firestore [java] to get started with cloud firestore [kotlin]?

get started with cloud firestore [java], can i switch it into [kotlin]? im watching a video on youtube and im following his steps but when he clicked on cloud firestore and he choose the get started with cloud firestore [kotlin] and it appears to me like get started with cloud firestore [java] is there any way to switch it in android studio ? and btw im coding with kotlin i haven’t used java once ,please help and thank you enter image description here

get started with cloud firestore [java], can i switch it into [kotlin]?

get started with cloud firestore [java], can i switch it into [kotlin]?
im watching a video on youtube and im following his steps but when he clicked on cloud firestore and he choose the get started with cloud firestore [kotlin] and it appears to me like get started with cloud firestore [java] is there any way to switch it in android studio ? and btw im coding with kotlin i haven’t used java once ,please help and thank you enter image description here