-1
試了很久,但無法解決它。我有Android的編譯工具和支持庫安裝以及無法解析符號actionbaractivity
的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "com.example.amrit.myapplication"
minSdkVersion 8
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
proguardFile 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'
}
的.java
package com.example.amrit.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class Game extends ActionBarActivity {
爲什麼你試圖擴展'ActionBarActivity'如果你使用'AppCompatActivity'? –