Under ubuntu equipped with android development environment, it is found that the R file in the new project reports an error

Under ubuntu equipped with android development environment, it was found that the R file in the new project reported an error.

Then your computer ui machine must be 64-bit.

The Android SDK is compiled under the 32-bit GNU/Linux system. Of course, 64-bit machines will make mistakes.

Solution:

run:

  1. sudo apt-get update  
  2. sudo apt-get install ia32-libs 
After that, restart eclipse or android studio just fine

Guess you like

Origin blog.csdn.net/miaoyuqiao/article/details/12327201