Skip to content Skip to sidebar Skip to footer

R.java File Not Generated When Creating New Android Project In Eclipse And Android-studio

R.java file is not getting generated for new Android projects in eclipse and Android studio. This happened after i updated Android SDK Tools -> 24.4.1 (latest version) Android S

Solution 1:

Many times it happens when you do not rename resources properly as per conventions. For Example if you insert a number in resource file name, or put a space between file name or string/color/dimens/style name etc.

Please check naming once.

Solution 2:

Found a solution to my problem. Its the problem with the system 64bit architecture but not with eclipse or android studio. Android SDK is designed for 32bit architecture so i needed to install 32 bit libraries in my 64 bit Ubuntu. Here are the missing libraries

    sudo apt-get install lib32z1

    sudo apt-get install lib32stdcc++6

installing these libraries solved my issue. Found solution, @Denis Uyeda answer in R.java file not getting generated.

Post a Comment for "R.java File Not Generated When Creating New Android Project In Eclipse And Android-studio"