Recently the android studio shows Error Java cannot find Symbol or each run. i have to go to built and rebuilt the project before each run. Is there any way to fix it? i do
in android studio version 2+, use this in all gradle config files
android{
..
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
incremental = false;
}
...
}
and if you have experimental for ndk use like this
model {
android.compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
incremental false
}
}