android


Android:non-constant field error


I'm making a Android application to scan 2D barcodes.
I'm using the Zxing source code in my application.
When i pasted the code into my project , 29 errors occured .
15 of these errors said the following :"Non-Constant Expressions: Migration Necessary"
The error message box said me to change the switch-statements to if-else statements.
The problem is that i don't see any switch-statement in my code .
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.test);
findViewById(R.id.get_camera_parameters).setOnClickListener(getCameraParameters);
findViewById(R.id.scan_product).setOnClickListener(scanProduct);
findViewById(R.id.scan_qr_code).setOnClickListener(scanQRCode);
findViewById(R.id.scan_anything).setOnClickListener(scanAnything);
findViewById(R.id.search_book_contents).setOnClickListener(searchBookContents);
findViewById(R.id.encode_url).setOnClickListener(encodeURL);...}
Can Anyone help me with this problem .
Thanks in advance , TB
They changed the way libraries work with the R14 version of the tools. See this. So that's where the error stems from, but I do not see why it would be reported in the particular snippet of code you posted, maybe there's something wrong with the library itself.

Related Links

Save image JPG captured by the camera
Android string split with regex to recieve LatLng [closed]
Android: fetch local images from a specific index?
SQLite add Information to Listview
how to show firebase notification with custom layout?
How to make particular position of recyclerview item as highlighted by default in Android
How can show notification icon only on status bar
How to Trigger onCreateOptionsMenu automatically
Google Autocomplete Place search functionality by using city name & zip code
Firebase querying
Can not start android emulator from command line
Cropping Image view
Android Gps Tracker not getting timely updates
Chat via WIFI platform independent
Android cannot update fragment datas
HotwordDetector using VoiceInteractionService in android

Categories

HOME
algorithm
adal
api
time-complexity
apache-flink
telegram
wakanda
google-spreadsheet
pascal
limit
teechart
extjs4.2
google-schemas
openpyxl
distribution
datastage
intercom
null-pointer
ag
ios10.2
flask-sqlalchemy
jboss6.x
windows-server-2003
appirater
delimiter
8051
wcag
paperjs
gp
sqlpackage
scatter3d
testbed
r-grid
erb
clickjacking
hibernate-search
pdw-file-browser
lubridate
openproject
playframework-2.1
nohup
recurrent-neural-network
mongoose-schema
opensmpp
magento-1.9.3
laravel-elixir
dcmtk
install.packages
placeholder
apache-directory
rfc3339
double-click
automapper-5
dotnet-httpclient
page-replacement
ngmaterial
boo
flac
cmp
restore
rmongo
taocp
docpad
flex-monkey
segment-io
myspace
drawstring
wso2developerstudio
google-query-language
ikiwiki
pushbots
grass
exim4
java-money
r-package
file-move
forwarding
cgi-bin
lasso
wso2greg
baasbox
alloy-ui
telepat
uvc
exceldatareader
theos
contrast
sql-scripts
cocos3d
appserver
strawberry-perl
raygun
lambda-architecture
reflector
spring-remoting
multiautocompletetextview
drupal-nodes
script#
virtual-pc
dopostback
adobe-media-server
cross-database
box2d-iphone
xcelsius
google-floodlight
cruisecontrol.rb
filesystemobject
silverlight-oob

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App