![]() ![]() And as a suggestion, if you’re using Kotlin, i really recommend using Kotlin extensions in your activity such as : import .activity_page.* or if you’re using a custom view : .view_layout.view.*Īfter that, in onCreat() method of an activity, you’ll only have to call the id, for example : my_edit_text_ID.text = "Kotlin Dbest!", or from a custom view : mCostumView.my_edit_text_ID.text = "Kotlin Dbest!".I noticed that this problem happens to me the most of the time when importing new resources, Using prohibited characters in their names would fire the error, such as.Cleaning the project from time to time may save you some time, on Android Studio it would be something like this : Build -> Clean Project / Rebuild Project – Cleaning IDE cash also helps with performance and memory, on Android Studio it would look like this : File-> Invalidate Chases/ Restart -> Invalidate Cashes and Restart Sometimes it can happen because of the IDE, performances or memory.It can also happen by the mismatch of resources and code, including this importation line in your activity may solve the problem too : import use the exclude group method like the following : implementation(':picasso:2.71828') in this case, picasso library uses android.support components, the android library version used in picasso is different than the one you’re currently using in your app, so in order to solve this issue, we have to exclude it completely from its sub library and class groups. ![]() ![]() as mentioned by martomstom in this Answer the issue is sometimes caused by :gradle version, changing it’s version to a more stable one would solve the problem: for example: :gradle:3.4.0-alpha02 with :gradle:3.2.1Īlso, having libraries from the same group, but with different versions may cause the problem or even more runtime errors. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |