Cannot Resolve Symbol Kitkat Cannot Resolve Method Getallocationbytecount()
I am trying to run 'BitmapFun' official example but getting the following errors: 1)Cannot resolve symbol KITKAT 2) Cannot resolve method getAllocationByteCount() Any help ? My An
Solution 1:
You'll need to set the build SDK version to 19 (4.4) or higher to have API level 19 symbols available while compiling.
First, use the SDK Manager to download API 19 if you don't have it yet.
Then, configure your project to use API 19:
In Android Studio: File -> Project Structure -> General Settings -> Project SDK.
In Eclipse ADT: Project Properties -> Android -> Project Build Target
Solution 2:
the method bitmap.getAllocationByteCount()
was introduced in API level 19.
if your project build target is less than API 19, it will give error.
try this...
1) select your project root folder and right click
2) go to properties -> android
3) select API 19 as your project build target and clean your project
Post a Comment for "Cannot Resolve Symbol Kitkat Cannot Resolve Method Getallocationbytecount()"