-3

How would I resolve this error? There is no error indicated in the code

Screenshot 1

Screenshot 2

Johnny Bones
  • 8,786
  • 7
  • 52
  • 117
Gowsik
  • 1,096
  • 1
  • 12
  • 25

2 Answers2

0

It's an issue in Android Studio and Eclipse. Try clean and build your application. Or delete the R, (Don't worry, it is auto-generated)

shibapoo
  • 1,909
  • 3
  • 16
  • 22
  • did that.. still the same problem:( – Gowsik Mar 09 '16 at 05:45
  • Can you post the line of codes that has an error? hmmm. it seems that it is calling android.support.design.widget.AppBarLayout$LayoutParams instead of LinearLayout.LayoutParams. Please check your imports if it is importing android.widget.LinearLayout; – shibapoo Mar 09 '16 at 05:56
  • pls click on the above link in the question – Gowsik Mar 10 '16 at 15:31
  • What do you really want to do with your code? Since you want to support api 14, maybe you should try alternative methods since Landroid/widget/LinearLayout$LayoutParams; is for API 19 and above only. Try running that on Emulator / genymotion with API level 19 if error is still present. – shibapoo Mar 12 '16 at 07:36
0
W/dalvikvm: VFY: unable to resolve direct method 19327: Landroid/widget/LinearLayout$LayoutParams;.<init> (Landroid/widget/LinearLayout$LayoutParams;)V

The LinearLayout.LayoutParams(LinearLayout.LayoutParams) copy constructor was added in API level 19 and your device is running API level 18.

Note that this is just a warning in the logcat. Code requiring API level 19 was loaded by the classloader but so far there's no evidence of that being a problem.

laalto
  • 150,114
  • 66
  • 286
  • 303
  • but the log cat is not working after that ...am running this application on Samsung GT-I9300 Android 4.3,API 18...............my apps minimum sdk is 14.... how can i resolve this issue... because my app will target users form 14 to 23...thanks in advance – Gowsik Mar 11 '16 at 05:37