Skip to content Skip to sidebar Skip to footer

Cannot Find Symbol Class Actionbaractivity (android Recycled View)

I have some problem when i build graddle.. i don't understand where is the probleme, i read many things about that, but i can't find the solution.. i have already: download the Rep

Solution 1:

According to the documentation 'ActionBarActivity' has been deprecated and removed from support library, extend your Activity from 'AppCompatActivity' instead:

import android.support.v7.app.AppCompatActivity;

publicclassYourActivityextendsAppCompatActivity

app/build.gradle

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    defaultConfig {
        applicationId 'your_app_id'
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"

    }
    }

dependencies {
    implementation 'com.android.support:appcompat-v7:27.1.0'
}

Solution 2:

ActionBarActivity has been deprecated.

You should extend AppCompatActivity.

Why was ActionBarActivity deprecated

More info on this post.

Solution 3:

ActionBarActivity has been removed from support library since version 26.0.0-beta2. Please take a look at:

  1. https://developer.android.com/sdk/support_api_diff/26.0.0-beta2/changes.html
  2. https://developer.android.com/sdk/support_api_diff/26.0.0-beta2/changes/alldiffs_index_removals.html

You can easily solve the problem by changing ActionBarActivity to AppCompatActivity.

Post a Comment for "Cannot Find Symbol Class Actionbaractivity (android Recycled View)"