Я использую пример приложения Dungeons и класс BillingService, представленный в этом примере.
Я использую Java 6, и @override у меня работает, но я получаю ошибку компиляции этих двух методов внутри BillingService.java:
/**
* This is called when we are connected to the MarketBillingService.
* This runs in the main UI thread.
*/
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
if (Consts.DEBUG) {
Log.d(TAG, "Billing service connected");
}
mService = IMarketBillingService.Stub.asInterface(service);
runPendingRequests();
}
/**
* This is called when we are disconnected from the MarketBillingService.
*/
@Override
public void onServiceDisconnected(ComponentName name) {
Log.w(TAG, "Billing service disconnected");
mService = null;
}
Кто-нибудь поможет мне понять, почему это происходит?
Спасибо!