General R file error, nothing more than resource file error, picture naming error, but compilation will report error, can be quickly solved. However, a few days ago, after introducing a third-party AAR package, the project compiled correctly, but the R file failed to find the R file, and the whole project was in the red.
2. Wrong approach
Clean Project
Rebuild Project
I’m sure a lot of people, the first reaction is these two versions, but after trying both, found that still report errors. I closed the studio and reopened it several times, even rebooted the computer…
3. Solution
1) The R file should be generated, but it cannot be referenced. Then we go to the R file and open it.
When you open the R file, you find a line at the top of the R file, as shown in the figure below:
The IDE limits the size of files that can be associated, mainly to protect memory. The default value is 2500KB. Find the problem, and let’s fix it.
2) choose Android Studio under the Help menu of the Edit the Custom Properties, in the file to add: idea. Max. Intellisense. Filesize = 5000, and then restart the Android Studio. As shown in the figure:
After you restart Android Studio, everything should be fine.
If you have any mistakes, please point out and learn together.
Read More:
- IBM MQ Reason 2538(MQRC_ HOST_ NOT_ An example of error reason
- R language-Error in file(out, “wt”): Unable to open the link problem solved
- R:Error : .onLoad failed in loadNamespace() for ‘rJava’, details: call: dyn.load(file, DLLpa
- Reason for error in idea @ springbootapplication [solved]
- R load(xxx.Rdata) Error bad restore file magic number (file may be corrupted) — no data loaded
- [Mac OS] ASUS z97-k r2.0 + gtx960 + clover v2.4k r4098 install Sierra 10.12.5 problems and Solutions
- The reason of OpenGL configuration error in VS
- Reporting Services Catalog Database File Existence” error during installing SQL Server 2008 R2
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- The solution of “error in NLS loop more than 50” in R language
- Use of rep function in R
- 【R】【unimplemented type ‘list’ in ‘orderVector1’】
- R-DataCamp-Data Manipulation with dplyr in R
- In Vue, use echorts to report an error: “typeerror: cannot read property ‘init’ of undefined” error reporting reason and solution
- Renaming the column name of data frame in R language
- R language error in hist.default ():’x’must be a value
- Solving the problem of saving object set by save() function in R language
- Solution of Prophet error reporting when installing R package in Kubuntu virtual machine environment
- Error analysis of multiple linear regression in R language model.frame.default
- Usage and examples of three important functions of tidyr package in R language: gather, spread and separate