03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: Exception while inflating
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17 tag requires viewportWidth > 0
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.graphics.drawable.VectorDrawableCompat.updateStateFromTypedArray(VectorDrawableCompat.java:535)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.graphics.drawable.VectorDrawableCompat.inflate(VectorDrawableCompat.java:472)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.graphics.drawable.VectorDrawableCompat.createFromXmlInner(VectorDrawableCompat.java:436)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager$VdcInflateDelegate.createFromXmlInner(AppCompatDrawableManager.java:829)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:303)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:178)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.widget.Toolbar.(Toolbar.java:254)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.widget.Toolbar.(Toolbar.java:196)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at java.lang.reflect.Constructor.constructNative(Native Method)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.view.LayoutInflater.createView(LayoutInflater.java:614)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:716)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.view.LayoutInflater.rInflate(LayoutInflater.java:775)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.view.LayoutInflater.rInflate(LayoutInflater.java:778)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.view.LayoutInflater.inflate(LayoutInflater.java:512)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.view.LayoutInflater.inflate(LayoutInflater.java:409)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.view.LayoutInflater.inflate(LayoutInflater.java:358)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.app.AppCompatDelegateImplV7.createSubDecor(AppCompatDelegateImplV7.java:379)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.app.AppCompatDelegateImplV7.ensureSubDecor(AppCompatDelegateImplV7.java:300)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:264)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at dome.com.chuanglu.myapplication.LoginActivity.onCreate(LoginActivity.java:68)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.app.Activity.performCreate(Activity.java:5285)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.app.ActivityThread.access$1100(ActivityThread.java:139)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.os.Handler.dispatchMessage(Handler.java:102)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.os.Looper.loop(Looper.java:136)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at android.app.ActivityThread.main(ActivityThread.java:5314)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at java.lang.reflect.Method.invokeNative(Native Method)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at java.lang.reflect.Method.invoke(Method.java:515)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
03-05 19:53:32.710 30968-30968/dome.com.chuanglu.myapplication E/VdcInflateDelegate: at dalvik.system.NativeStart.main(Native Method)
解决办法:
在清单文件中添加主题
便可以运行OK