Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transpor projeto para as novas dependencias kotlinx. #1

Closed
neuberfran opened this issue Jul 1, 2019 · 9 comments
Closed

transpor projeto para as novas dependencias kotlinx. #1

neuberfran opened this issue Jul 1, 2019 · 9 comments

Comments

@neuberfran
Copy link
Owner

neuberfran commented Jul 1, 2019

Este projeto é baseado nesse:

neuberfran/Marvel#1

quando eu subo as dependencias abaixo, de:

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:0.19.3'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.19.3'
implementation 'ru.gildor.coroutines:kotlin-coroutines-retrofit:0.8.2'

para:

implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.2.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.1.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.2.1'

obtenho o erro abaixo(prin screen) , e se transformo a classe CharactersAdapter em abstrata, obtenho erro em:

  private val adapter: CharactersAdapter by lazy {
        CharactersAdapter()
    }

do pacote: CharactersActivity.

issue

@AhmadAyyaz1993
Copy link

You are missing your overriden method onCreateViewHolder from your adapter class

@neuberfran
Copy link
Owner Author

image

@AhmadAyyaz1993
Copy link

it is gonna be like this:

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): VH{ View inflater = LayoutInflater.from(parent?.context).inflate(R.layout.item_character, parent, false) return MovieViewHolder(inflater, parent) }

@neuberfran
Copy link
Owner Author

image

@neuberfran
Copy link
Owner Author

abstract but not solved in other local
image

image

@neuberfran
Copy link
Owner Author

image

@AhmadAyyaz1993
Copy link

replace your parent with p0.

@neuberfran
Copy link
Owner Author

kotlin.NotImplementedError: An operation is not implemented: not implemented
Captura de Tela 2019-07-27 às 20 33 28

kotlin.NotImplementedError: An operation is not implemented: not implemented

@neuberfran
Copy link
Owner Author

Solved 28/7/19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants