Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

代码不全吧? #1

Open
KevinLium opened this issue Jun 30, 2019 · 0 comments
Open

代码不全吧? #1

KevinLium opened this issue Jun 30, 2019 · 0 comments

Comments

@KevinLium
Copy link

KevinLium commented Jun 30, 2019

打开GoodsDetailsActivity的时候报错了。正在找问题 ,看了xml没错呀。
谢谢了。
--------- beginning of crash
07-01 08:01:57.074 10121-10121/com.jack.meituangoodsdetails E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.jack.meituangoodsdetails, PID: 10121
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.jack.meituangoodsdetails/com.jack.meituangoodsdetails.activity.GoodsDetailsActivity}: android.view.InflateException: Binary XML file line #21: Binary XML file line #21: Error inflating class com.jack.meituangoodsdetails.view.GoodsTitleView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2514)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574)
at android.app.ActivityThread.access$1100(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5684)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
Caused by: android.view.InflateException: Binary XML file line #21: Binary XML file line #21: Error inflating class com.jack.meituangoodsdetails.view.GoodsTitleView
at android.view.LayoutInflater.inflate(LayoutInflater.java:543)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at com.jack.meituangoodsdetails.activity.GoodsDetailsActivity.onCreate(GoodsDetailsActivity.java:17)
at android.app.Activity.performCreate(Activity.java:6355)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574) 
at android.app.ActivityThread.access$1100(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:157) 
at android.app.ActivityThread.main(ActivityThread.java:5684) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) 
Caused by: android.view.InflateException: Binary XML file line #21: Error inflating class com.jack.meituangoodsdetails.view.GoodsTitleView
at android.view.LayoutInflater.createView(LayoutInflater.java:649)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:768)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:839)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) 
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
at com.jack.meituangoodsdetails.activity.GoodsDetailsActivity.onCreate(GoodsDetailsActivity.java:17) 
at android.app.Activity.performCreate(Activity.java:6355) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574) 
at android.app.ActivityThread.access$1100(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:157) 
at android.app.ActivityThread.main(ActivityThread.java:5684) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:623)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:768) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:839) 
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:519) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:427) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) 
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
at com.jack.meituangoodsdetails.activity.GoodsDetailsActivity.onCreate(GoodsDetailsActivity.java:17) 
at android.app.Activity.performCreate(Activity.java:6355) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574) 
at android.app.ActivityThread.access$1100(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:157) 
at android.app.ActivityThread.main(ActivityThread.java:5684) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) 
Caused by: android.view.InflateException: Binary XML file line #43: Binary XML file line #43: Error inflating class
at android.view.LayoutInflater.inflate(LayoutInflater.java:543)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at com.jack.meituangoodsdetails.view.GoodsTitleView.initView(GoodsTitleView.java:38)
at com.jack.meituangoodsdetails.view.GoodsTitleView.(GoodsTitleView.java:34)
at com.jack.meituangoodsdetails.view.GoodsTitleView.(GoodsTitleView.java:29)
at java.lang.reflect.Constructor.newInstance(Native Method) 
at android.view.LayoutInflater.createView(LayoutInflater.java:623) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:768) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:839) 
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:519) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:427) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) 
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
at com.jack.meituangoodsdetails.activity.GoodsDetailsActivity.onCreate(GoodsDetailsActivity.java:17) 
at android.app.Activity.performCreate(Activity.java:6355) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574) 
at android.app.ActivityThread.access$1100(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:157) 
at android.app.ActivityThread.main(ActivityThread.java:5684) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) 
Caused by: android.view.InflateException: Binary XML file line #43: Error inflating class
at android.view.LayoutInflater.createView(LayoutInflater.java:649)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:698)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:766)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:839)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
at com.jack.meituangoodsdetails.view.GoodsTitleView.initView(GoodsTitleView.java:38) 
at com.jack.meituangoodsdetails.view.GoodsTitleView.(GoodsTitleView.java:34) 
at com.jack.meituangoodsdetails.view.GoodsTitleView.(GoodsTitleView.java:29) 
at java.lang.reflect.Constructor.newInstance(Native Method) 
at android.view.LayoutInflater.createView(LayoutInflater.java:623) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:768) 
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708) 
at android.view.LayoutInflater.rInflate(LayoutInflater.java:839) 
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:519) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:427) 
at android.view.LayoutInflater.inflate(LayoutInflater.java:374) 
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469) 
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140) 
at com.jack.meituangoodsdetails.activity.GoodsDetailsActivity.onCreate(GoodsDetailsActivity.java:17) 
at android.app.Activity.performCreate(Activity.java:6355) 
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2467) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2574) 
at android.app.ActivityThread.access$1100(ActivityThread.java:153) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1425) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:157) 
at android.app.ActivityThread.main(ActivityThread.java:5684) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) 
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Co

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant