phonegap/phonegap-plugins — Issue #213: Barcode Scanner / Android: ADT 14:  Non-Constant Expressions: Migration Necessary
Author: libbybaldwin
Created: 2011-11-02 03:23:16+00:00
State: open

Eclipse Java Error: "Non-Constant Expressions: Migration Necessary"

(sending screenshot in separate email - eclipse won't let me copy text from Android error window!)

Eclipse with **ADT 14**:
Import Library Project as Android Project per README.md instructions.
This results in Errors like "can no longer use fields in switch statements".

As in CaptureActivityHandler.java: line 69:
case R.id.auto_focus: "case expressions must be constant expressions"

Prevents using ZXing as Android Project with ADT14+.