いくつかのイベントを投稿しており、購読したコードがデバッグAPK上で正常に動作しますが、私のキーストアでapkに署名してアプリケーションをインストールすると、同じコードがクラッシュします。Signed apkでのイベントバスエラー
java.lang.RuntimeException: Unable to start activity ComponentInfo
{com.example.friendz/com.example.friendz.shivaraj.activities.MainActivity}:
a.a.a.h: Subscriber class com.example.friendz.shivaraj.activities.MainActivity
and its super classes have no public methods with the @Subscribe annotation
しかし、私の主な活動は@Subscribeを持つユーザは、私は私の活動
@Subscribe
public void updateLocationEvent(String isStartLoc) {
Log.d("eventbuus", "stop event rcvd");
if (isStartLoc.equals("start")) {
startLocationUpdates();
} else {
stopLocationUpdates();
}
}
で、この加入者を持っていると私はこの
@Override
protected void onStart() {
super.onStart();
mGoogleApiClient.connect();
EventBus.getDefault().register(this);
}
@Override
protected void onStop() {
super.onStop();
EventBus.getDefault().unregister(this);
}
たぶん、独自のカスタムPOJOで 'STRING'をラップしてみてください。 (getterでString型の1つのフィールドを持つ単純なクラスを作る)。違いがあるかどうかを確認してください。 – Vucko
リリースビルドでproguardを使用していますか? – Muthu
はい。私はそれを持って.. –