Android Studio のコード インスペクションで、プロジェクト固有のリソースが見つからないようです。
たとえば、私のstyles.xml
<resources>
<style name="AppBaseTheme" parent="Holo.Theme.Light.DarkActionBar">
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
</style>
</resources>
2 番目の AppBaseTheme を赤でマークし、「シンボル 'AppBaseTheme' を解決できません」と表示します。
アプリは問題なくコンパイルおよび実行されますが、リソースのコード補完はありません。ただし、検査では、ActionBarSherlock リソースと HoloEverywhere リソース (例: Holo.Theme.Light.DarkActionBar、オートコンプリートも機能します) が検出されるようです。
アプリ(サブ)プロジェクトのbuild.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4.1'
}
}
apply plugin: 'android'
dependencies {
//compile files('libs/android-support-v4.jar')
compile project(':abs-library')
compile project(':he-library')
compile project(':he-addons:slider')
compile project(':he-addons:preferences')
// using a custom repo here
compile 'com.google.android:support-v4:r13'
}
android {
compileSdkVersion 17
buildToolsVersion "17.0.0"
defaultConfig {
minSdkVersion 7
targetSdkVersion 17
}
sourceSets {
main {
manifest.srcFile 'src/main/AndroidManifest.xml'
java.srcDirs = ['src/main/java']
// abs-res, he-res are symlinks to ../abs-library/res
// and ../he-library/res
res.srcDirs = ['src/main/res', 'abs-res', 'he-res']
}
}
}