기본 설정을 사용하여 Android 프로젝트에 ProGuard를 추가했는데 코드가 깨졌습니다. 첫 화면에서 ProGuard가 내 Android 코드를 파손했습니다.
는,이 같은 버튼이 있습니다<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:onClick="onSaveButtonClick" />
을 그리고 클래스의 방법이 있습니다
public void onSaveButtonClick(View view){
// some code
}
ProGuard에서 장애인, 모든 것이 잘 작동합니다.
05-17 16:04:54.099: E/AndroidRuntime(1181): java.lang.IllegalStateException: Could not find a method onSaveButtonClick(View) in the activity class xxxx for onClick handler on view class android.widget.Button with id 'xxxxx'
어떤 아이디어 왜 이런 일이 : 활성화되면 버튼을 클릭에 나는이 오류가?
[이 스레드] (http://stackoverflow.com/questions/7796190/androidonclick-not-working-with-proguard) 보셨습니까? – keyser