Questions tagged as 'kotlin'

0
answers

Error getting Firebase InstanceID in Android Studio

I'm trying to get the instanceId of firebase in Android Studio, but an error occurs in my Debug console. E / FirebaseInstanceId: Google Play services missing or without correct permission. My MyFirebaseMessagingService class is like this....
asked by 03.10.2018 / 03:04
1
answer

Android Studio - XML Layout does not show options and always gives error

Any and all layout I create does not show elements like LinearLayout, RecyclerView and others. Only the options below (and the errors too) Also, XML always has an error saying that width or height is missing, but everything is fine (as...
asked by 20.10.2018 / 22:36
1
answer

What is the double exclamation before the method call in Kotlin?

I'm studying Kotlin. I noticed that, in the conversion to type int , it is necessary to put the double exclamation ( !! ). Example: var input = readLine()!!.toInt(); Generally in other languages double exclamation is used to...
asked by 05.08.2017 / 22:02
0
answers

Kotlin - nresolved reference: DaggerNOMEComponent

Good luck, I'm currently studying on Dagger 2 and the MVP architecture, and doing some test projects. The problem is that I'm stuck in an error and can not see the solution.    Unresolved reference: DaggerHelloComponent T...
asked by 07.08.2018 / 19:07
1
answer

I do not know how to get latitude and longitude using GoogleApiClient

I'm developing an android app using Kotlin, I followed a tutorial on a topic from here, however it took the last location that was saved, not latitude and longitude, which is what I need. Here is the code: class InserirAbastecimentoActivity :...
asked by 08.05.2018 / 15:56
0
answers

Fragments hang after inserting data

I'm having trouble entering information using this code. The process executes and inserts normally, but from there it no longer loads my fragments and is only locked in a white screen. I'm starting with RxJava and I do not even know if the code...
asked by 28.02.2018 / 19:07
1
answer

How to join a TabLayout in activity with a ViewPager within a FrameLayout

I'm working on a project where I need to join a TabLayout that is in activity with a ViewPager that is inside a fragment in the Activity FrameLayout. I'm trying everything, but my short question is: How can I get this ViewPager from fragment...
asked by 17.11.2017 / 21:08
1
answer

How to solve this error when using the Room Persistence Library with Kotlin?

When I run the app, I get a crash on the first call to the database: java.lang.RuntimeException: Unable to start activity ComponentInfo{.../....ActivityLogin}: java.lang.RuntimeException: cannot find implementation for ....database.AppDatabase...
asked by 15.11.2017 / 19:19
1
answer

App crashing when trying to save a file using ObjectOutputStream

MainActivity looks like this: turma.alunos.add(Aluno("Weslley", "123")) turma.alunos.add(Aluno("Thiago", "1235")) turma.alunos.add(Aluno("Thayane", "1234")) turma.alunos.add(Aluno("Kelvin", "1253")) turma.alunos.add(Aluno("...
asked by 22.09.2017 / 03:12
0
answers

Error compileDebugKotlin

Error:    Error: Execution failed for task ': app: compileDebugKotlin'.   Compilation error. See log for more details Build.gradle App module apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plug...
asked by 29.07.2017 / 14:31