Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] java – how to clean up generated data binding files?

Posted on November 11, 2022 By

Solution 1 :

self answer.

In my case, after fixing the following code, the problem was solved.

To speed up the build I used the following code in gradle.properties:

org.gradle.daemon = true
org.gradle.parallel = true
org.gradle.configureondemond = true
org.gradle.caching = true

Because of this, clean did not work properly. After commenting the code, it worked.

Solution 2 :

The same error as you.
Need change org.gradle.caching = true toorg.gradle.caching = false, and then everythis is ok.

But why? We can’t use incremental builds? What’s the actual problem?

org.gradle.caching = true can dramatically speed up clean and incremental builds.help provide quick build performance wins

Problem :

I’ve got a problem

I created the activity and xml files in a git branch.

Commit these tasks, and change the branch to do something else.

However, when build app, the following error occurred.

/Users/xxxx/Desktop/product/product-app-android/app/build/generated/source/kapt/stgDebug/kr/co/product/product/databinding/ActivityDebugUserInfoBindingImpl.java:8: error: cannot find symbol

ActivityDebugUserInfo is the file I created in the previous branch.

There is no such file in the current branch. Nevertheless, it was created automatically

I repeated clean project and rebuild, invalid cache and restart. However, the problem was not solved.

The automatically generated file has been revived like a zombie.

Obviously, I think the file will be automatically generated based on some cache data.

But i don’t know what it is.

How can i refresh generated databinding file?

Comments

Comment posted by stackoverflow.com/questions/58340113/…

Similar to this question –

READ  [FIXED] Android Drawable Importer not found in plugins in Android Studio
Powered by Inline Related Posts
Android Tags:android, data-binding, java, kotlin

Post navigation

Previous Post: [FIXED] android – How to achieve ionic permissions on first load
Next Post: [FIXED] android – How do i put online database into local database

Related Posts

[FIXED] java – Unresolved reference error when importing library Android
[FIXED] android – install_referrer mail from google Android
[FIXED] How to show nearby locations from current location android studio? Android
[FIXED] android – Flutter SocketException: OS Error: No route to host, errno = 113, address = xxxx, port = 42376 Android
[FIXED] android – Image selection limit while picking images from the gallery Android
[FIXED] A problem occurred configuring root project ‘android’ When building the gradle both VSCode and Android Studio (Flutter) Android

Archives

  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can Vicks humidifier be used without filter?
  • What color is Spanish green?
  • How old is Jamie in The War That Saved My Life?
  • When should I use scalp massager for hair growth?
  • Can I put polyurethane over liming wax?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme