0
Error: cannot find symbol import com.wa.delxott.R
                        
Symbol:   class R
Location: package com.wa.delxott

After I change package name, during app resking. I try to check clear and rebuild, but I am getting same error. I've lost my 7 hours for this error. Is there any way to fix this it?

In download fragment.java R is highlighted as a red colour error:

import com.orhanobut.hawk.Hawk; 
import com.wa.delxott.Provider.AndroidWebServer; 
import com.wa.delxott.R; 
import com.wa.delxott.entity.DownloadItem; 
import com.wa.delxott.ui.Adapters.DownloadedAdapter; 
import com.wa.delxott.ui.activities.PlayerActivity; 
Maksim I. Kuzmin
  • 1,170
  • 7
  • 16
  • Hi please add portion of code that causes this error. – Zahid Khan Dec 10 '21 at 12:40
  • *import com.orhanobut.hawk.Hawk; import com.wa.delxott.Provider.AndroidWebServer;* *import com.wa.delxott*.**R**; *import com.wa.delxott.entity.DownloadItem; import com.wa.delxott.ui.Adapters.DownloadedAdapter; import com.wa.delxott.ui.activities.PlayerActivity;* – Wasim Aftab Dec 10 '21 at 12:41
  • No Wasim, not here, but in your question. You have to add that – Zahid Khan Dec 10 '21 at 12:43
  • It's impossible to tell that way, what is it exactly. There is no known `com.wa.delxott` package, I suppose it's some inside development of yours or your company. The error means that there is no `R` class in `com.wa.delxott` package – Maksim I. Kuzmin Dec 16 '21 at 17:09
  • 1
    Does this answer your question? [What does a "Cannot find symbol" or "Cannot resolve symbol" error mean?](https://stackoverflow.com/questions/25706216/what-does-a-cannot-find-symbol-or-cannot-resolve-symbol-error-mean) – Maksim I. Kuzmin Dec 16 '21 at 17:10
  • Why is this tagged [tag:r]? – camille Dec 17 '21 at 21:25

0 Answers0