It's several days and I'm still trying to use android.support.v7 In Intellij Idea I have searched and read many pages but not found a way to fix it
- Updated Android SDK Tolls , Android SDK Platform-Tools , Android Support Library And Android Support Repository
- Copy android-support-v13.jar To libs Directry
- Press Alt+ctrl+Shift+s
- Add jar File To Library
- Add jar File To Modules >> Dependencies (Press '+' And Use Each Of 'JARs Or Directories' And 'Library >> Java' And Check 'android-support-v13'
But in activity class it still show error "Cannot resolve Symbol 'ActionBarActivity'"
import android.os.Bundle;
import com.example.daft_theme.R; // It's Grey
import android.support.v7.app.ActionBarActivity; // It's Grey Too
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// ActionBar actionBar = getSupportActionBar();
}
}
At AndroidManifest.xml :
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
Please tell me how to fix it , thank you.