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

Ошибка при правке кода #200

Open
september669 opened this issue May 21, 2018 · 5 comments
Open

Ошибка при правке кода #200

september669 opened this issue May 21, 2018 · 5 comments

Comments

@september669
Copy link

september669 commented May 21, 2018

Приветствую!

Если править код относяшийся к презентеру или вью, то при попытки сбилдить почти всегда оканчиваются ошибками вида:

e: ../app/build/tmp/kapt3/stubs/debug/..ui/base/PlayerView.java:20: error: annotation @StateStrategyType is missing a default value for the element 'value'

@com.arellomobile.mvp.viewstate.strategy.StateStrategyType()

Лечится clean up project and build again. Это нормально?

Заранее спасибо

@xanderblinov
Copy link
Collaborator

Добрый день, а какая у вас версия библиотеки и как подключено? Если можете, прикрепите, пожалуйста build.gradle файл

@september669
Copy link
Author

Версия 1.5.3. Подключено, вроде бы, как в гайдах
gradle.zip

@AlonParker
Copy link

Та же проблема при наследовании ScreenVeiw -> BaseView -> MvpVeiw если в BaseView прописываю любую стратегию, ломается инкрементальная сборка при изменении кода в презентере или во вью.
error: annotation @StateStrategyType is missing a default value for the element 'value'
Ребилд помогает.
implementation "com.arello-mobile:moxy-app-compat:1.5.5"
kapt "com.arello-mobile:moxy-compiler:1.5.5"
kotlin_version = '1.2.41'

@september669
Copy link
Author

У меня оказалась такая же причина.
StateStrategyType не обьявленна Inherited, значит стратегии не наследуются? Подскажите, пожалуйста, как тогда реализовывать иерархию view?

@AlonParker
Copy link

Разобрался, у меня в методах BaseView была дефолтная реализация, убрал ее и все полетело

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

3 participants