Android Studio does not recognize R. Any Solution?

Asked

Viewed 101 times

0

package com.example.consult.myapplication;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

I wonder what error I have in this application that appears Cannot solves Symbol 'R' I just installed everything: Android Studio, Java and even Ubuntu. Note: JRE 1.8_121 | Ubuntu 16.04 LTS | Android Studio 2.3

  • 1

    There is already a topic for that. See if it helps your problem http://answall.com/questions/54/erro-r-cannot-be-resolved

  • That guy’s problem was something else, even though the mistake was the same

  • Already tried to rebuild the project?

  • If you have tried Builder->Clean Project, check if any layout has an error.

  • I just created the project, and I have only one Linearlayout in xml. And only one Activity

  • That chosen answer is not the only answer, see this for example http://answall.com/a/70928/3635

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.