Android : Works in Eclipse, Error in Android Studio

on Tuesday, September 23, 2014


Sorry, I'm not very experienced with either environment and apologize if this is a simple issue:


I'm porting code from Eclipse to Android Studio that includes lots or overrides, such as this




@Override
public void onConfigurationChanged (Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}


When trying to run the code, every one of these gives me an "error: ';' expected", with the Gradle Console pointing at the space right before the opening parenthesis (i.e., before "(Configuration newConfig)"). When pointing at "@Qverride", I also get a "Annotations are not allowed here" hint.


Any ideas why this is happening? Would appreciate your help!


0 comments:

Post a Comment