1. Android Central Question's Avatar
    I've updated my build.gradle (Module: app) with a newer implementation of 'kotlin-kapt' and implemented the navigation plugin.

    Android Studio has now highlighted these lines as errors inside the onCreateView function of my Fragments:

    private lateinit var binding: FragmentPrincipalBinding

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
    binding = DataBindingUtil.inflate(inflater, R.layout.fragment_principal, container, false)
    [...]
    -> binding.setLifecycleOwner(this) <-
    [...]
    -> return binding.root() <-
    }

    The methods are now not avaiable for the binding object so, how do I do the Lifecycle owning of the binding for the Fragment? And what do I return now?
    07-23-2019 04:45 PM
  2. B. Diddy's Avatar
    I moved this to the Software Development forum for more specific traffic.
    07-23-2019 05:46 PM
  3. mustang7757's Avatar
    I've updated my build.gradle (Module: app) with a newer implementation of 'kotlin-kapt' and implemented the navigation plugin.

    Android Studio has now highlighted these lines as errors inside the onCreateView function of my Fragments:

    private lateinit var binding: FragmentPrincipalBinding

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
    binding = DataBindingUtil.inflate(inflater, R.layout.fragment_principal, container, false)
    [...]
    -> binding.setLifecycleOwner(this) <-
    [...]
    -> return binding.root() <-
    }

    The methods are now not avaiable for the binding object so, how do I do the Lifecycle owning of the binding for the Fragment? And what do I return now?
    If you can register a account here, so you can communicate . I'll leave a link to register
    https://forums.androidcentral.com/as...community.html
    07-23-2019 08:08 PM

Similar Threads

  1. "Comma" change to keyboard
    By cgilm2526 in forum Samsung Galaxy S10 & S10+
    Replies: 3
    Last Post: 07-23-2019, 01:46 PM
  2. Absolutely NOTHING) HAS HELPED ME TO RESET MY V M. PASSCODE
    By Android Central Question in forum Ask a Question
    Replies: 3
    Last Post: 07-23-2019, 12:38 PM
  3. how can i change vibration intensity in vivo y83pro
    By Android Central Question in forum General Help and How To
    Replies: 1
    Last Post: 07-23-2019, 12:05 PM
  4. how can i change vibration intensity in vivo y83pro
    By Android Central Question in forum Ask a Question
    Replies: 0
    Last Post: 07-23-2019, 05:32 AM
LINK TO POST COPIED TO CLIPBOARD