R无法使用actionbarsherlock解析

时间:2016-02-01 07:30:12

标签: android actionbarsherlock

我添加了actionbarsherlock 到目前为止,它引起了头痛。解决了很多问题后,我坚持了新的问题。

当我从SherlockFragment activity派生我的活动课并尝试使用R时,它给了我错误can not resolve symbol R

我在SO上尝试了其他解决方案,但无法解决问题

我无法解决此问题。我的创建和活动类看起来像这样

    package pk.com.sd.absone;

 import android.net.Uri;
 import android.os.Bundle;
 import android.support.design.widget.FloatingActionButton;
 import android.support.design.widget.Snackbar;
 import android.support.v7.app.AppCompatActivity;
 import android.support.v7.widget.Toolbar;
 import android.view.View;
 import android.view.Menu;
 import android.view.MenuItem;
 import com.actionbarsherlock.app.SherlockFragmentActivity;


 public class MainActivity extends SherlockFragmentActivity {

/**
 * ATTENTION: This was auto-generated to implement the App Indexing API.
 * See https://g.co/AppIndexing/AndroidStudio for more information.
 */


@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_main);


    // ATTENTION: This was auto-generated to implement the App Indexing API.
    // See htstps://g.co/AppIndexing/AndroidStudio for more information.

}

}

0 个答案:

没有答案