android.support.v7.widget.CardView无法inflating

图片说明
每次运行到这句话就会报错说CardView无法inflating,然后提示的xml里的第八行代码如下。
图片说明
图片说明
查了很久都说在gradle里加入依赖就可以,可是我加入后依然不行图片说明
图片说明

1个回答

首先relativeLayout不用设置方向
然后尝试一下 LayoutInflater.from(mContext).inflate

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Error inflating class com.mining.app.zxing.view.ViewfinderView
[img=https://img-bbs.csdn.net/upload/201412/14/1418538238_85941.jpg][/img]rnViewfinderView是我自定义的View,这个工程单独运行时可以通过,但是被另一个工程引用时就会出现上面错误,这是怎么回事啊?代码如下rn[code=java]/*rn * Copyright (C) 2008 ZXing authorsrn *rn * Licensed under the Apache License, Version 2.0 (the "License");rn * you may not use this file except in compliance with the License.rn * You may obtain a copy of the License atrn *rn * http://www.apache.org/licenses/LICENSE-2.0rn *rn * Unless required by applicable law or agreed to in writing, softwarern * distributed under the License is distributed on an "AS IS" BASIS,rn * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.rn * See the License for the specific language governing permissions andrn * limitations under the License.rn */rnrnpackage com.mining.app.zxing.view;rnrnimport java.util.Collection;rnimport java.util.HashSet;rnrnimport android.content.Context;rnimport android.content.res.Resources;rnimport android.graphics.Bitmap;rnimport android.graphics.Canvas;rnimport android.graphics.Color;rnimport android.graphics.Paint;rnimport android.graphics.Rect;rnimport android.graphics.Typeface;rnimport android.util.AttributeSet;rnimport android.view.View;rnrnimport com.example.qr_codescan.R;rnimport com.google.zxing.ResultPoint;rnimport com.mining.app.zxing.camera.CameraManager;rnrn/**rn * This view is overlaid on top of the camera preview. It adds the viewfinderrn * rectangle and partial transparency outside it, as well as the laser scannerrn * animation and result points.rn * rn */rnpublic final class ViewfinderView extends View rn private static final String TAG = "log";rn /**rn * 刷新界面的时间rn */rn private static final long ANIMATION_DELAY = 10L;rn private static final int OPAQUE = 0xFF;rnrn /**rn * 四个绿色边角对应的长度rn */rn private int ScreenRate;rn rn /**rn * 四个绿色边角对应的宽度rn */rn private static final int CORNER_WIDTH = 10;rn /**rn * 扫描框中的中间线的宽度rn */rn private static final int MIDDLE_LINE_WIDTH = 6;rn rn /**rn * 扫描框中的中间线的与扫描框左右的间隙rn */rn private static final int MIDDLE_LINE_PADDING = 5;rn rn /**rn * 中间那条线每次刷新移动的距离rn */rn private static final int SPEEN_DISTANCE = 5;rn rn /**rn * 手机的屏幕密度rn */rn private static float density;rn /**rn * 字体大小rn */rn private static final int TEXT_SIZE = 16;rn /**rn * 字体距离扫描框下面的距离rn */rn private static final int TEXT_PADDING_TOP = 30;rn rn /**rn * 画笔对象的引用rn */rn private Paint paint;rn rn /**rn * 中间滑动线的最顶端位置rn */rn private int slideTop;rn rn /**rn * 中间滑动线的最底端位置rn */rn private int slideBottom;rn rn /**rn * 将扫描的二维码拍下来,这里没有这个功能,暂时不考虑rn */rn private Bitmap resultBitmap;rn private final int maskColor;rn private final int resultColor;rn rn private final int resultPointColor;rn private Collection possibleResultPoints;rn private Collection lastPossibleResultPoints;rnrn boolean isFirst;rn rn public ViewfinderView(Context context, AttributeSet attrs) rn super(context, attrs);rn rn density = context.getResources().getDisplayMetrics().density;rn //将像素转换成dprn ScreenRate = (int)(20 * density);rnrn paint = new Paint();rn Resources resources = getResources();rn maskColor = resources.getColor(R.color.viewfinder_mask);rn resultColor = resources.getColor(R.color.result_view);rnrn resultPointColor = resources.getColor(R.color.possible_result_points);rn possibleResultPoints = new HashSet(5);rn rnrn @Overridern public void onDraw(Canvas canvas) rn //中间的扫描框,你要修改扫描框的大小,去CameraManager里面修改rn Rect frame = CameraManager.get().getFramingRect();rn if (frame == null) rn return;rn rn rn //初始化中间线滑动的最上边和最下边rn if(!isFirst)rn isFirst = true;rn slideTop = frame.top;rn slideBottom = frame.bottom;rn rn rn //获取屏幕的宽和高rn int width = canvas.getWidth();rn int height = canvas.getHeight();rnrn paint.setColor(resultBitmap != null ? resultColor : maskColor);rn rn //画出扫描框外面的阴影部分,共四个部分,扫描框的上面到屏幕上面,扫描框的下面到屏幕下面rn //扫描框的左边面到屏幕左边,扫描框的右边到屏幕右边rn canvas.drawRect(0, 0, width, frame.top, paint);rn canvas.drawRect(0, frame.top, frame.left, frame.bottom + 1, paint);rn canvas.drawRect(frame.right + 1, frame.top, width, frame.bottom + 1,rn paint);rn canvas.drawRect(0, frame.bottom + 1, width, height, paint);rn rn rnrn if (resultBitmap != null) rn // Draw the opaque result bitmap over the scanning rectanglern paint.setAlpha(OPAQUE);rn canvas.drawBitmap(resultBitmap, frame.left, frame.top, paint);rn else rnrn //画扫描框边上的角,总共8个部分rn paint.setColor(Color.GREEN);rn canvas.drawRect(frame.left, frame.top, frame.left + ScreenRate,rn frame.top + CORNER_WIDTH, paint);rn canvas.drawRect(frame.left, frame.top, frame.left + CORNER_WIDTH, frame.toprn + ScreenRate, paint);rn canvas.drawRect(frame.right - ScreenRate, frame.top, frame.right,rn frame.top + CORNER_WIDTH, paint);rn canvas.drawRect(frame.right - CORNER_WIDTH, frame.top, frame.right, frame.toprn + ScreenRate, paint);rn canvas.drawRect(frame.left, frame.bottom - CORNER_WIDTH, frame.leftrn + ScreenRate, frame.bottom, paint);rn canvas.drawRect(frame.left, frame.bottom - ScreenRate,rn frame.left + CORNER_WIDTH, frame.bottom, paint);rn canvas.drawRect(frame.right - ScreenRate, frame.bottom - CORNER_WIDTH,rn frame.right, frame.bottom, paint);rn canvas.drawRect(frame.right - CORNER_WIDTH, frame.bottom - ScreenRate,rn frame.right, frame.bottom, paint);rnrn rn //绘制中间的线,每次刷新界面,中间的线往下移动SPEEN_DISTANCErn slideTop += SPEEN_DISTANCE;rn if(slideTop >= frame.bottom)rn slideTop = frame.top;rn rn canvas.drawRect(frame.left + MIDDLE_LINE_PADDING, slideTop - MIDDLE_LINE_WIDTH/2, frame.right - MIDDLE_LINE_PADDING,slideTop + MIDDLE_LINE_WIDTH/2, paint);rn rn rn //画扫描框下面的字rn paint.setColor(Color.WHITE);rn paint.setTextSize(TEXT_SIZE * density);rn paint.setAlpha(0x40);rn paint.setTypeface(Typeface.create("System", Typeface.BOLD));rn canvas.drawText(getResources().getString(R.string.scan_text), frame.left, (float) (frame.bottom + (float)TEXT_PADDING_TOP *density), paint);rn rn rnrn Collection currentPossible = possibleResultPoints;rn Collection currentLast = lastPossibleResultPoints;rn if (currentPossible.isEmpty()) rn lastPossibleResultPoints = null;rn else rn possibleResultPoints = new HashSet(5);rn lastPossibleResultPoints = currentPossible;rn paint.setAlpha(OPAQUE);rn paint.setColor(resultPointColor);rn for (ResultPoint point : currentPossible) rn canvas.drawCircle(frame.left + point.getX(), frame.toprn + point.getY(), 6.0f, paint);rn rn rn if (currentLast != null) rn paint.setAlpha(OPAQUE / 2);rn paint.setColor(resultPointColor);rn for (ResultPoint point : currentLast) rn canvas.drawCircle(frame.left + point.getX(), frame.toprn + point.getY(), 3.0f, paint);rn rn rnrn rn //只刷新扫描框的内容,其他地方不刷新rn postInvalidateDelayed(ANIMATION_DELAY, frame.left, frame.top,rn frame.right, frame.bottom);rn rn rn rnrn public void drawViewfinder() rn resultBitmap = null;rn invalidate();rn rnrn /**rn * Draw a bitmap with the result points highlighted instead of the livern * scanning display.rn * rn * @param barcodern * An image of the decoded barcode.rn */rn public void drawResultBitmap(Bitmap barcode) rn resultBitmap = barcode;rn invalidate();rn rnrn public void addPossibleResultPoint(ResultPoint point) rn possibleResultPoints.add(point);rn rnrnrn[/code]rn[code=html]rnrnrn rnrn rnrn rnrn rn rnrn[/code]rn谢谢各位大神帮助!
android.view.InflateException: Error inflating class
[code=Java]com.huawei.appmarketrnrn// CRASH: com.huawei.appmarket (pid 1484)rnrn// Short Msg: java.lang.NullPointerExceptionrnrn// Long Msg: java.lang.NullPointerException: File res/drawable/search_activity_bg.jpg from drawable resource ID #0x7f0200ecrnrn// Build Label: Huawei/U9200/hwu9200:4.0.3/HuaweiU9200/C00B002:user/release-keysrnrn// Build Changelist: C00B002rnrn// Build Time: 1340970883000rnrn// java.lang.RuntimeException: Unable to start activity ComponentInfocom.huawei.appmarket/com.huawei.appmarket.ui.search.SearchActivity: android.view.InflateException: Binary XML file line #2: Error inflating class rnrn// at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)rnrn// at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)rnrn// at android.app.ActivityThread.access$600(ActivityThread.java:123)rnrn// at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)rnrn// at android.os.Handler.dispatchMessage(Handler.java:99)rnrn// at android.os.Looper.loop(Looper.java:137)rnrn// at android.app.ActivityThread.main(ActivityThread.java:4424)rnrn// at java.lang.reflect.Method.invokeNative(Native Method)rnrn// at java.lang.reflect.Method.invoke(Method.java:511)rnrn// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)rnrn// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)rnrn// at dalvik.system.NativeStart.main(Native Method)rnrn// Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class rnrn// at android.view.LayoutInflater.createView(LayoutInflater.java:606)rnrn// at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)rnrn// at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)rnrn// at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)rnrn// at android.view.LayoutInflater.inflate(LayoutInflater.java:466)rnrn// at android.view.LayoutInflater.inflate(LayoutInflater.java:396)rnrn// at android.view.LayoutInflater.inflate(LayoutInflater.java:352)rnrn// at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)rnrn// at android.app.Activity.setContentView(Activity.java:1840)rnrn// at com.huawei.appmarket.ui.search.SearchActivity.onCreate(SearchActivity.java:286)rnrn// at android.app.Activity.performCreate(Activity.java:4470)rnrn// at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)rnrn// at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)rnrn// ... 11 morernrn// Caused by: java.lang.reflect.InvocationTargetExceptionrnrn// at java.lang.reflect.Constructor.constructNative(Native Method)rnrn// at java.lang.reflect.Constructor.newInstance(Constructor.java:417)rnrn// at android.view.LayoutInflater.createView(LayoutInflater.java:586)rnrn// ... 23 morernrn// Caused by: android.content.res.Resources$NotFoundException: File res/drawable/search_activity_bg.jpg from drawable resource ID #0x7f0200ecrnrn// at android.content.res.Resources.loadDrawable(Resources.java:2538)rnrn// at android.content.res.TypedArray.getDrawable(TypedArray.java:613)rnrn// at android.view.View.(View.java:2793)rnrn// at android.view.View.(View.java:2730)rnrn// at android.view.ViewGroup.(ViewGroup.java:379)rnrn// at android.widget.RelativeLayout.(RelativeLayout.java:174)rnrn// ... 26 morernrn// Caused by: java.lang.NullPointerExceptionrnrn// at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:541)rnrn// at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:508)rnrn// at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:360)rnrn// at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)rnrn// at android.content.res.Resources.loadDrawable(Resources.java:2533)rnrn// ... 31 morernrn// rnrn** Monkey aborted due to error.[/code]
让我苦恼的Error inflating class android.support.design.widget.TabLayout
最近开始看一个开源安卓工程,源码使用的IDE是AS,我修改后在Eclipse中调试,可以成功运行程序,但进入主界面时崩溃。rnrn错误log如下:rn[code=text]rn08-21 18:29:10.267: D/OpenGLRenderer(19671): Use EGL_SWAP_BEHAVIOR_PRESERVED: truern08-21 18:29:10.277: D/Atlas(19671): Validating map...rn08-21 18:29:10.277: D/ActivityThreadInjector(19671): clearCachedDrawables.rn08-21 18:29:10.337: I/Adreno(19671): QUALCOMM build : 5a2e917, Iae42b9ed90rn08-21 18:29:10.337: I/Adreno(19671): Build Date : 03/28/16rn08-21 18:29:10.337: I/Adreno(19671): OpenGL ES Shader Compiler Version: E031.25.03.09rn08-21 18:29:10.337: I/Adreno(19671): Local Branch : rn08-21 18:29:10.337: I/Adreno(19671): Remote Branch : rn08-21 18:29:10.337: I/Adreno(19671): Remote Branch : rn08-21 18:29:10.337: I/Adreno(19671): Reconstruct Branch : rn08-21 18:29:10.347: I/OpenGLRenderer(19671): Initialized EGL, version 1.4rn08-21 18:29:10.357: D/OpenGLRenderer(19671): Enabling debug mode 0rn08-21 18:29:10.377: I/VideoView(19671): Open Videorn08-21 18:29:10.387: I/MediaPlayer(19671): player name is [com.cniao5.app36kr_cnk]rn08-21 18:29:10.387: E/MediaPlayer-JNI(19671): QCMediaPlayer mediaplayer NOT presentrn08-21 18:29:10.387: I/VideoView(19671): SetDataSourcern08-21 18:29:10.597: I/Timeline(19671): Timeline: Activity_idle id: android.os.BinderProxy@1ab0dce1 time:59949246rn08-21 18:29:10.687: V/Settings(19671): get setting for user 0 by user 0 key:accessibility_captioning_localern08-21 18:29:10.687: V/Settings(19671): get setting for user 0 by user 0 key:accessibility_captioning_enabledrn08-21 18:29:10.687: D/MediaPlayer(19671): getMetadatarn08-21 18:29:10.717: I/VideoView(19671): Playback Start beginrn08-21 18:29:10.717: I/VideoView(19671): Playback Start endrn08-21 18:29:10.757: W/MediaPlayer(19671): info/warning (3, 0)rn08-21 18:29:14.527: V/Settings(19671): get setting for user 0 by user 0 key:sound_effects_enabledrn08-21 18:29:14.527: I/VideoView(19671): Playback Stop beginrn08-21 18:29:14.587: I/VideoView(19671): Playback Stop endrn08-21 18:29:14.587: I/Timeline(19671): Timeline: Activity_launch_request time:59953233rn08-21 18:29:14.617: W/MediaPlayer(19671): mediaplayer went away with unhandled eventsrn08-21 18:29:14.807: D/AndroidRuntime(19671): Shutting down VMrn08-21 18:29:14.817: E/AndroidRuntime(19671): FATAL EXCEPTION: mainrn08-21 18:29:14.817: E/AndroidRuntime(19671): Process: com.cniao5.app36kr_cnk, PID: 19671rn08-21 18:29:14.817: E/AndroidRuntime(19671): java.lang.RuntimeException: Unable to start activity ComponentInfocom.cniao5.app36kr_cnk/com.cniao5.app36kr_cnk.ui.MainActivity: android.view.InflateException: Binary XML file line #8: Error inflating class android.support.design.widget.TabLayoutrn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.ActivityThread.access$800(ActivityThread.java:154)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.os.Handler.dispatchMessage(Handler.java:102)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.os.Looper.loop(Looper.java:135)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.ActivityThread.main(ActivityThread.java:5308)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at java.lang.reflect.Method.invoke(Native Method)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at java.lang.reflect.Method.invoke(Method.java:372)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:913)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:708)rn08-21 18:29:14.817: E/AndroidRuntime(19671): Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class android.support.design.widget.TabLayoutrn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.createView(LayoutInflater.java:637)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:747)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.rInflate(LayoutInflater.java:810)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.inflate(LayoutInflater.java:508)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.inflate(LayoutInflater.java:418)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at com.cniao5.app36kr_cnk.fragment.MainInfoFragment.onCreateView(MainInfoFragment.java:41)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:985)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1175)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1277)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2232)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.FragmentController.onCreateView(FragmentController.java:111)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.FragmentActivity.dispatchFragmentsOnCreateView(FragmentActivity.java:278)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.BaseFragmentActivityHoneycomb.onCreateView(BaseFragmentActivityHoneycomb.java:31)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:78)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at com.cniao5.app36kr_cnk.ui.base.BaseActivity.onCreateView(BaseActivity.java:1)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at com.cniao5.app36kr_cnk.ui.MainActivity.onCreateView(MainActivity.java:1)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:737)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.rInflate(LayoutInflater.java:810)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.inflate(LayoutInflater.java:508)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.inflate(LayoutInflater.java:418)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.inflate(LayoutInflater.java:365)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.Activity.setContentView(Activity.java:2173)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at com.cniao5.app36kr_cnk.ui.MainActivity.onCreate(MainActivity.java:40)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.Activity.performCreate(Activity.java:6049)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2304)rn08-21 18:29:14.817: E/AndroidRuntime(19671): ... 10 morern08-21 18:29:14.817: E/AndroidRuntime(19671): Caused by: java.lang.reflect.InvocationTargetExceptionrn08-21 18:29:14.817: E/AndroidRuntime(19671): at java.lang.reflect.Constructor.newInstance(Native Method)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at java.lang.reflect.Constructor.newInstance(Constructor.java:288)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.view.LayoutInflater.createView(LayoutInflater.java:611)rn08-21 18:29:14.817: E/AndroidRuntime(19671): ... 40 morern08-21 18:29:14.817: E/AndroidRuntime(19671): Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/design/R$styleable;rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.design.widget.TabLayout.(TabLayout.java:234)rn08-21 18:29:14.817: E/AndroidRuntime(19671): at android.support.design.widget.TabLayout.(TabLayout.java:219)rn08-21 18:29:14.817: E/AndroidRuntime(19671): ... 43 morern08-21 18:29:14.817: E/AndroidRuntime(19671): Causedrn08-21 18:29:14.837: I/Process(19671): Sending signal. PID: 19671 SIG: 9[/code]rnrnrn在网上找了很多类似的解决方案都没解决我的问题,例如更换主题为AppCompat、更换和SDK相匹配的android-support-design包等,都不成功。rnrn苦恼了几天,现求助于各位,谢啦[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/15.gif][/img]rnrnrn该eclipse工程的百度网盘链接:rn[url=https://pan.baidu.com/s/1BMq7Ce62ozFWRlMunxumbg][/url]rn
Fragment的问题,Error inflating class fragment
就几行很简单的代码:rnrnMainActivity.javarn[code=java]package com.plusjun.action;rnrnimport android.os.Bundle;rnimport android.app.Activity;rnimport android.app.Fragment;rnimport android.util.Log;rnimport android.view.LayoutInflater;rnimport android.view.Menu;rnimport android.view.MenuItem;rnimport android.view.View;rnimport android.view.ViewGroup;rnrnpublic class MainActivity extends Activity rnrn @Overridern protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.activity_main);rn rnrn @Overridern public boolean onCreateOptionsMenu(Menu menu) rn super.onCreateOptionsMenu(menu);rn // Inflate the menu; this adds items to the action bar if it is present.rn getMenuInflater().inflate(R.menu.main, menu);rn return false;rn rnrn @Overridern public boolean onOptionsItemSelected(MenuItem item) rn return super.onOptionsItemSelected(item);rn rnrnrnclass MyFragment extends Fragmentrn rn @Overridern public View onCreateView(LayoutInflater inflater, ViewGroup container,rn Bundle savedInstanceState) rn return inflater.inflate(R.layout.a,container,false);rn rn[/code]rnrnactivity_main.xmlrn[code=html]rnrn rnrn rnrn[/code]rnrna.xmlrn[code=html]rnrnrn rnrn[/code]rnrn报错日志如下:rn[img=https://img-bbs.csdn.net/upload/201308/10/1376145970_496859.png][/img]rnrn搞了我三天了。求解答
关于Binary XML file line #:error inflating class 的问题。求助!
[img=https://img-bbs.csdn.net/upload/201405/11/1399801013_973730.jpg][/img]rnrnrn我在做一个阅读器的夜间模式,在第一个活动里还正常,进入别的活动就这样报错啊。rnrnrnrn rnrn rnrn rnrnrnrnrn这是要进入活动的XML rnrnrnrn求助啊[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img]
Binary XML file line #11: Error inflating class com.baidu.mapapi.map.MapView
按照官网配置出现以下问题rnandroid.view.InflateException: Binary XML file line #11: Error inflating class com.baidu.mapapi.map.MapViewrnrn这是java程序rnpackage com.example.map;rnrnimport com.baidu.mapapi.SDKInitializer;rnimport com.baidu.mapapi.map.MapView;rnrnimport android.support.v7.app.ActionBarActivity;rnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.view.Menu;rnimport android.view.MenuItem;rnrnrnpublic class Map extends Activity rnrnMapView mMapView = null; rnrnrn@Overridernprotected void onCreate(Bundle savedInstanceState) rnrnsuper.onCreate(savedInstanceState);rnSDKInitializer.initialize(getApplicationContext());rnrnsetContentView(R.layout.activity_map);rnmMapView = (MapView) findViewById(R.id.bmapView);rnrn@Override rn protected void onDestroy() rn super.onDestroy(); rn //在activity执行onDestroy时执行mMapView.onDestroy(),实现地图生命周期管理 rn mMapView.onDestroy(); rn rn @Override rn protected void onResume() rn super.onResume(); rn //在activity执行onResume时执行mMapView. onResume (),实现地图生命周期管理 rn mMapView.onResume(); rn rn @Override rn protected void onPause() rn super.onPause(); rn //在activity执行onPause时执行mMapView. onPause (),实现地图生命周期管理 rn mMapView.onPause(); rn rnrnrnrn这是xml,红的是市第十一行rnrnrn rnrnrn试过网上很多方法都没解决,试过很多sdk版本都没解决rnrn[img=https://img-bbs.csdn.net/upload/201508/11/1439284793_375187.png][/img]rn要是这样配置文件不正确,求正确配置方法
Binary XML file line #2: Error inflating class错误
这种错误感觉是概率性出现的异常。rn提供一种原因:[color=#FF0000]xml文件输入了中文字符!![/color]很可能是中文的空格。反正我遇到的都是看不到的。rn解决方法:把报错行数附近的[color=#FF0000]几行都删掉[/color],(别图省事,只删除几个空格!)用英文输入法重新补上。rn我的错误就是这么解决的。其他的原因度娘知道。rn如果不对,请指教。: )
菜鸟 Error inflating class android.support.v7.widget.Toolbar 怎么解决?急
菜鸟问题:建了个画面rnrnrn rn rn rnrn rn rn rn rnrnrnrn也加了rndependencies rncompile 'com.android.support:appcompat-v7:23.1.1'rn compile 'com.android.support:design:23.1.1'rnrnrnrnrn但启动后总是报rnSystem.err: android.view.InflateException: Binary XML file line #9: Error inflating class android.support.v7.widget.ToolbarrnSystem.err: at android.view.LayoutInflater.createView(LayoutInflater.java:640)rnSystem.err: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)rnSystem.err: at android.view.LayoutInflater.rInflate(LayoutInflater.java:813)rnrn不知道哪里版本设置是否不对?rn
【android】使用部分模拟器出现兼容问题Error inflating class EditText
在使用部分模拟器(此处我使用的是逍遥模拟器)会出现很奇怪的错误,但在其他手机上或模拟器上没有出现 解决方法如下: 在style.xml文件中 @color/colorPrimary @color/colorPrimaryDark @style/EditTextStyle
android.view.InflateException: Binary XML file line #2: Error inflating class
华为P8上运行无碍(5.0以上系统),别的手机上报错rnrn错误代码:rn/AndroidRuntime: FATAL EXCEPTION: mainrn Process: com.caicai.net.myapplication, PID: 21121rn java.lang.RuntimeException: Unable to start activity ComponentInfocom.caicai.net.myapplication/com.caicai.net.myapplication.PlayingMethodActivity: android.view.InflateException: Binary XML file line #2: Error inflating class rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)rn at android.app.ActivityThread.access$900(ActivityThread.java:141)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:136)rn at android.app.ActivityThread.main(ActivityThread.java:5072)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:515)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)rn at dalvik.system.NativeStart.main(Native Method)rn Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class rn at android.view.LayoutInflater.createView(LayoutInflater.java:623)rn at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)rn at android.view.LayoutInflater.onCreateView(LayoutInflater.java:672)rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:472)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:400)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:353)rn at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)rn at android.app.Activity.setContentView(Activity.java:1947)rn at com.caicai.net.myapplication.PlayingMethodActivity.onCreate(PlayingMethodActivity.java:99)rn at android.app.Activity.performCreate(Activity.java:5249)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250) rn at android.app.ActivityThread.access$900(ActivityThread.java:141) rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213) rn at android.os.Handler.dispatchMessage(Handler.java:102) rn at android.os.Looper.loop(Looper.java:136) rn at android.app.ActivityThread.main(ActivityThread.java:5072) rn at java.lang.reflect.Method.invokeNative(Native Method) rn at java.lang.reflect.Method.invoke(Method.java:515) rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) rn at dalvik.system.NativeStart.main(Native Method) 
Binary XML file line : #6Error inflating class 的问题
[img=https://img-bbs.csdn.net/upload/201610/23/1477234669_374435.png][/img]rn使用ViewPager出现的问题,xml布局就是一张imageview一张图片,rn而且我已经把图片分辨率调低了,是什么问题呢??求助
创建圆角视频视图,只要在视频控件外加入android.support.v7.widget.CardView就可以了
首先导入 implementation 'com.android.support:cardview-v7:27.1.1'控件才能使用 然后如图空白部分: <android.support.v7.widget.CardView android:layout_width="match_parent" android:id="@+id/cardview" ap...
使用fragment加载自定义fragment出现error inflating class fragment错误解决办法(有效)
出现这个错误网上大部分方法是 1. 检查fragment包名,support.v4和正常的是不一样的 2. 检查activity,如果使用的是v4包下的fragment,则官方给出的是必须继承FragmentActivity(v4包),也可以使用CompatActivity(v7包,继承自FragmentActivity) 3. 静态加载fragment必须给出id 可能还有其他的一些错误
【安卓开发报错解决】使用Fragment报错——Binary XML file line #0 : Error inflating class顺利解决
    使用安卓开发移动应用,出现各种问题,每每让我感到绝望不堪。    在使用安卓开发APP的时候,经常会需要用Fragment来实现更好看的功能。我拿着《第一行代码》边看边学习Fragment如何实现。然而,在简单的看完书上的内容之后,在手动重现书上的代码的时候,就遇见了很狗血的事情——实现不了!    简直剧毒。    最简单的Fragment实现套路,按照《第一行代码》上所述,步骤就是——...
升级了androidstudio,原有的xml格式的图片加载报错 Error inflating class ImageView
首先排除了文件不存在的错误。因为我的文件确实存在的。也排除代码的错误,代码之前也没有动过,并且换一张xml的就可以了。rn我也怀疑过是否是图片的原因,但是图片被我放到android studio2.3.3版本上就可以访问,并且同事的android studio3.3版本也能运行的起。rn我在想是不是我的android studio什么设置的原因?我单独把图片写出来也报错,并且编译通过,报运行时的错误。rn请问各位大佬这是怎么回事?rnrn报错代码:rn Caused by: android.view.InflateException: Binary XML file line #19: Binary XML file line #19: Error inflating class ImageViewrn Caused by: android.view.InflateException: Binary XML file line #19: Error inflating class ImageViewrn [color=#FF0000]Caused by: android.content.res.Resources$NotFoundException: Drawable com.llx.myapplication:drawable/a_ic_index__4 with resource ID #0x7f060001rn Caused by: android.content.res.Resources$NotFoundException: File res/drawable/a_ic_index__4.xml from drawable resource ID #0x7f060001[/color]rn at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:982)rn at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:769)rn at android.content.res.Resources.getDrawableForDensity(Resources.java:918)rn at android.content.res.Resources.getDrawable(Resources.java:860)rn at android.content.Context.getDrawable(Context.java:611)rn at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:351)rn at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:200)rn at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:188)rn at android.support.v7.content.res.AppCompatResources.getDrawable(AppCompatResources.java:100)rn at android.support.v7.widget.AppCompatImageHelper.loadFromAttributes(AppCompatImageHelper.java:58)rn at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:78)rn at android.support.v7.widget.AppCompatImageView.(AppCompatImageView.java:68)rn at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)rn at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)rn at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:779)rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:737)rn at android.view.LayoutInflater.rInflate(LayoutInflater.java:870)rn at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:831)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:515)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:423)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:374)rn at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)rn at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)rn at com.llx.myapplication.MainActivity.onCreate(MainActivity.java:24)rn at android.app.Activity.performCreate(Activity.java:7267)rn at android.app.Activity.performCreate(Activity.java:7258)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2953)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3078)rn at android.app.ActivityThread.-wrap11(Unknown Source:0)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)rn2019-02-19 09:45:02.299 7346-7346/? E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)rn at android.os.Looper.loop(Looper.java:183)rn at android.app.ActivityThread.main(ActivityThread.java:7014)rn at java.lang.reflect.Method.invoke(Native Method)rn at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888)rn [color=#FF0000] Caused by: java.lang.IllegalArgumentException: Invalid pathData. Failure occurred at position 2 of path: STRING_TOO_LARGE[/color]rn at android.util.PathParser.nCreatePathDataFromString(Native Method)rn at android.util.PathParser.-wrap1(Unknown Source:0)rn at android.util.PathParser$PathData.(PathParser.java:76)rn at android.graphics.drawable.VectorDrawable$VFullPath.updateStateFromTypedArray(VectorDrawable.java:1931)rn at android.graphics.drawable.VectorDrawable$VFullPath.inflate(VectorDrawable.java:1882)rn at android.graphics.drawable.VectorDrawable.inflateChildElements(VectorDrawable.java:741)rn at android.graphics.drawable.VectorDrawable.inflate(VectorDrawable.java:639)rn at android.graphics.drawable.DrawableInflater.inflateFromXmlForDensity(DrawableInflater.java:142)rn at android.graphics.drawable.Drawable.createFromXmlInnerForDensity(Drawable.java:1295)rn at android.graphics.drawable.Drawable.createFromXmlForDensity(Drawable.java:1254)rn at android.content.res.ResourcesImpl.loadDrawableForCookie(ResourcesImpl.java:962)rn ... 37 morernrnrnrn我的代码贴图:rn[img=https://img-bbs.csdn.net/upload/201902/19/1550542110_272342.png][/img]rnrnrn我的svg:rn[code=java]rnrn
无法打开系统文件夹,无法粘贴,无法安装程序..无法打开属性页.....
2000专业版。rn里面有个可疑进程名叫capp.exe,终止进程后,注册表run下不能删掉其启动项,在dos下删掉capp后,重启还是像原来一样!机器完全无法工作!有谁遇到过此类病毒,帮帮忙!!!!!!
自定义ViewGroup,调试抛出Error inflating class,求构造函数以外的原因?
照着https://blog.csdn.net/lmj623565791/article/details/43131133这个网址想实现一个圆形旋转菜单,调试时发现在主页面的setContentView一步抛出 Error inflating class......异常,即自己的自定义ViewGroup无法被初始化,度娘说是构造函数的原因,但我确实把所有能找到的不同参数情况都加上去了,经测也不是未引用完整包名的原因;请问诸位,还可能是什么原因?n 先抛异常:n java.lang.RuntimeException: Unable to start activity ComponentInfocom.example.asus.newsapplication/com.example.asus.newsapplication.MainPage: android.view.InflateException: Binary XML file line #12: Error inflating class com.example.asus.newsapplication.CircleMenuLayoutn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)n at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)n at android.app.ActivityThread.access$800(ActivityThread.java:151)n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)n at android.os.Handler.dispatchMessage(Handler.java:102)n at android.os.Looper.loop(Looper.java:135)n at android.app.ActivityThread.main(ActivityThread.java:5254)n at java.lang.reflect.Method.invoke(Native Method)n at java.lang.reflect.Method.invoke(Method.java:372)n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)n Caused by: android.view.InflateException: Binary XML file line #12: Error inflating class com.example.asus.newsapplication.CircleMenuLayoutn at android.view.LayoutInflater.createView(LayoutInflater.java:633)n at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)n at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)n at android.view.LayoutInflater.inflate(LayoutInflater.java:504)n at android.view.LayoutInflater.inflate(LayoutInflater.java:414)n at android.view.LayoutInflater.inflate(LayoutInflater.java:365)n at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)n at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)n at com.example.asus.newsapplication.MainPage.onCreate(MainPage.java:16)n at android.app.Activity.performCreate(Activity.java:5990)n at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)n at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)n at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) n at android.app.ActivityThread.access$800(ActivityThread.java:151) n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) n at android.os.Handler.dispatchMessage(Handler.java:102) n at android.os.Looper.loop(Looper.java:135) n at android.app.ActivityThread.main(ActivityThread.java:5254) n at java.lang.reflect.Method.invoke(Native Method) n at java.lang.reflect.Method.invoke(Method.java:372) n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) n Caused by: java.lang.InstantiationException: Can't instantiate abstract class com.example.asus.newsapplication.CircleMenuLayoutn at java.lang.reflect.Constructor.newInstance(Native Method)n at java.lang.reflect.Constructor.newInstance(Constructor.java:288)n at android.view.LayoutInflater.createView(LayoutInflater.java:607)n at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) n at android.view.LayoutInflater.rInflate(LayoutInflater.java:806) n at android.view.LayoutInflater.inflate(LayoutInflater.java:504) n at android.view.LayoutInflater.inflate(LayoutInflater.java:414) n at android.view.LayoutInflater.inflate(LayoutInflater.java:365) n at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287) n at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) n at com.example.asus.newsapplication.MainPage.onCreate(MainPage.java:16) n at android.app.Activity.performCreate(Activity.java:5990) n at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) n at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278) n at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) n at android.app.ActivityThread.access$800(ActivityThread.java:151) n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) n at android.os.Handler.dispatchMessage(Handler.java:102) n at android.os.Looper.loop(Looper.java:135) n at android.app.ActivityThread.main(ActivityThread.java:5254) n at java.lang.reflect.Method.invoke(Native Method) n at java.lang.reflect.Method.invoke(Method.java:372) n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) n n 再贴图片:n ![图片说明](https://img-ask.csdn.net/upload/201806/05/1528204867_673557.png)n ![图片说明](https://img-ask.csdn.net/upload/201806/05/1528204937_810371.png)n ![图片说明](https://img-ask.csdn.net/upload/201806/05/1528204988_880336.png)
Binary XML file line #0: Binary XML file line #: Error inflating class com.xxx.
Process: com.yugong.Backome, PID: 23586rn java.lang.RuntimeException: Unable to start activity ComponentInfocom.xxx.xxx/com.xxx.xxx.activity.deploy.xxxactivity: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.xxx.xxx.camera.CameraPreviewrn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)rn at android.app.ActivityThread.-wrap12(ActivityThread.java)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)rn at android.os.Handler.dispatchMessage(Handler.java:105)rn at android.os.Looper.loop(Looper.java:156)rn at android.app.ActivityThread.main(ActivityThread.java:6523)rn at java.lang.reflect.Method.invoke(Native Method)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)rn Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.xxx.xxx.camera.CameraPreviewrn Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.xxxx.xxxx.camera.CameraPreviewrn Caused by: java.lang.reflect.InvocationTargetExceptionrn at java.lang.reflect.Constructor.newInstance0(Native Method)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:430)rn at android.view.LayoutInflater.createView(LayoutInflater.java:656)rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:798)rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)rn at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)rn at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:518)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:426)rn at android.view.LayoutInflater.inflate(LayoutInflater.java:377)rn at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:454)rn at com.android.internal.policy.HwPhoneWindow.setContentView(HwPhoneWindow.java:284)rn at android.app.Activity.setContentView(Activity.java:2515)rn at com.xxx.xxx.activity.BaseActivity.onCreate(BaseActivity.java:89)rn at com.xxx.xxx.activity.CloseActivity.onCreate(CloseActivity.java:19)rn at android.app.Activity.performCreate(Activity.java:6915)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)rn at android.app.ActivityThread.-wrap12(ActivityThread.java)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)rn at android.os.Handler.dispatchMessage(Handler.java:105)rn at android.os.Looper.loop(Looper.java:156)rn at android.app.ActivityThread.main(ActivityThread.java:6523)rn at java.lang.reflect.Method.invoke(Native Method)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)rn Caused by: java.lang.NoSuchFieldError: no "J" field "peer" in class "Lcom/yanzhenjie/zbar/ImageScanner;" or its superclassesrn at com.yanzhenjie.zbar.ImageScanner.init(Native Method)rn at com.yanzhenjie.zbar.ImageScanner.(ImageScanner.java:40)rn at com.xxxx.xxxx.camera.f.(CameraScanAnalysis.java:48)rn at com.xxx.xxxx.camera.CameraPreview.(CameraPreview.java:49)rn at com.xxxx.xxxx.camera.CameraPreview.(CameraPreview.java:42)rn at java.lang.reflect.Constructor.newInstance0(Native Method) rn at java.lang.reflect.Constructor.newInstance(Constructor.java:430) rn at android.view.LayoutInflater.createView(LayoutInflater.java:656) rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:798) rn at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738) rn at android.view.LayoutInflater.rInflate(LayoutInflater.java:869) rn at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832) rn at android.view.LayoutInflater.inflate(LayoutInflater.java:518) rn at android.view.LayoutInflater.inflate(LayoutInflater.java:426) rn at android.view.LayoutInflater.inflate(LayoutInflater.java:377) rn at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:454) rn at com.android.internal.policy.HwPhoneWindow.setContentView(HwPhoneWindow.java:284) rn at android.app.Activity.setContentView(Activity.java:2515) rn at com.xxxx.xxxx.activity.BaseActivity.onCreate(BaseActivity.java:89) rn at com.xxxx.xxxx.activity.CloseActivity.onCreate(CloseActivity.java:19) rn at android.app.Activity.performCreate(Activity.java:6915) rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746) rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864) rn at android.app.ActivityThread.-wrap12(ActivityThread.java) rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567) rn at android.os.Handler.dispatchMessage(Handler.java:105) rn at android.os.Looper.loop(Looper.java:156) rn at android.app.ActivityThread.main(ActivityThread.java:6523) rn at java.lang.reflect.Method.invoke(Native Method) rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942) rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) rnrn这个问题是出现在release包,debug包是没有问题的,在release包必现,有谁遇到过类似的问题吗,如何解决的
Android-Android库路由XML在inflating布局文件时将标签从一个标签转移到另一个标签
Android库路由XML在inflating布局文件时将标签从一个标签转移到另一个标签
【Android】Button使用自定义drawable文件来设置背景,运行报错“Error inflating class Button”
(Android Studio 3.1)给Button控件设置背景时,使用的是自定义的drawable文件,在Android 8.0上运行没有报错,但在Android 4.42版本上运行却报错了,报错如下:      最后发现切换到Project模式下,自己自定义的drawable文件bt_bg.xml文件放在了drawable-v24文件夹下,于是将bt_bg.xml文件移入drawa...
自定义View编译失败。Binary XML file line #255: Error inflating
一直运行正常,但是当待机在打开软件的时候就会报错!!!rn11-25 08:48:04.900: ERROR/AndroidRuntime(515): Uncaught handler: thread main exiting due to uncaught exceptionrn11-25 08:48:04.960: ERROR/AndroidRuntime(515): java.lang.RuntimeException: Unable to start activity ComponentInfocom.amaker.wlo/com.amaker.wlo.ValidatePwdActivity: android.view.InflateException: Binary XML file line #2: Error inflating class rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.ActivityThread.access$2200(ActivityThread.java:119)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.os.Handler.dispatchMessage(Handler.java:99)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.os.Looper.loop(Looper.java:123)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.ActivityThread.main(ActivityThread.java:4363)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at java.lang.reflect.Method.invokeNative(Native Method)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at java.lang.reflect.Method.invoke(Method.java:521)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at dalvik.system.NativeStart.main(Native Method)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.LayoutInflater.createView(LayoutInflater.java:513)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.LayoutInflater.inflate(LayoutInflater.java:385)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.Activity.setContentView(Activity.java:1622)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at com.amaker.wlo.ValidatePwdActivity.onCreate(ValidatePwdActivity.java:37)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): ... 11 morern11-25 08:48:04.960: ERROR/AndroidRuntime(515): Caused by: java.lang.reflect.InvocationTargetExceptionrn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.widget.RelativeLayout.(RelativeLayout.java:171)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at java.lang.reflect.Constructor.constructNative(Native Method)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.LayoutInflater.createView(LayoutInflater.java:500)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): ... 21 morern11-25 08:48:04.960: ERROR/AndroidRuntime(515): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budgetrn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:447)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:323)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.content.res.Resources.loadDrawable(Resources.java:1705)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.content.res.TypedArray.getDrawable(TypedArray.java:548)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.View.(View.java:1850)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.View.(View.java:1799)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): at android.view.ViewGroup.(ViewGroup.java:284)rn11-25 08:48:04.960: ERROR/AndroidRuntime(515): ... 25 morern求解,谢谢!!!rn
自定义View编译失败。Binary XML file line #255: Error inflating ...
02-28 15:17:16.281: DEBUG/AndroidRuntime(391): Shutting down VMrn02-28 15:17:16.281: WARN/dalvikvm(391): threadid=1: thread exiting with uncaught exception (group=0x4001d800)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): FATAL EXCEPTION: mainrn02-28 15:17:16.372: ERROR/AndroidRuntime(391): java.lang.RuntimeException: Unable to start activity ComponentInfocom.min.musicdemo/com.min.musicdemo.MusicDemo: android.view.InflateException: Binary XML file line #255: Error inflating class com.min.musicdemo.lyric.LyricViewrn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.ActivityThread.access$2300(ActivityThread.java:125)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.os.Handler.dispatchMessage(Handler.java:99)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.os.Looper.loop(Looper.java:123)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.ActivityThread.main(ActivityThread.java:4627)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at java.lang.reflect.Method.invokeNative(Native Method)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at java.lang.reflect.Method.invoke(Method.java:521)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at dalvik.system.NativeStart.main(Native Method)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): Caused by: android.view.InflateException: Binary XML file line #255: Error inflating class com.min.musicdemo.lyric.LyricViewrn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.createView(LayoutInflater.java:513)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.Activity.setContentView(Activity.java:1647)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at com.min.musicdemo.MusicDemo.onCreate(MusicDemo.java:255)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): ... 11 morern02-28 15:17:16.372: ERROR/AndroidRuntime(391): Caused by: java.lang.reflect.InvocationTargetExceptionrn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at com.min.musicdemo.lyric.LyricView.(LyricView.java:39)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at java.lang.reflect.Constructor.constructNative(Native Method)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): at android.view.LayoutInflater.createView(LayoutInflater.java:500)rn02-28 15:17:16.372: ERROR/AndroidRuntime(391): ... 23 morern02-28 15:17:16.372: ERROR/AndroidRuntime(391): Caused by: java.lang.NullPointerExceptionrn02-28 15:17:16.372: ERROR/AndroidRuntime(391): ... 27 morern02-28 15:17:16.421: WARN/ActivityManager(60): Force finishing activity com.min.musicdemo/.MusicDemorn02-28 15:17:16.942: WARN/ActivityManager(60): Activity pause timeout for HistoryRecord44035078 com.min.musicdemo/.MusicDemorn02-28 15:17:27.986: WARN/ActivityManager(60): Activity destroy timeout for HistoryRecord44035078 com.min.musicdemo/.MusicDemorn02-28 15:21:17.266: DEBUG/SntpClient(60): request time failed: java.net.SocketException: Address family not supported by protocolrnrnxml中使用rn[code=XML]rn rn rn rn [/code]rnrn类定义rn[code=Java]public class LyricView extends View rn private static final String TAG = "LyricView"; rn rn private Paint paint;rn private Rect rect; // 歌词显示区域rn private List list = null; // 歌词listrn private String text = "Lyric is loading..."; // 单行歌词rn private long currentTime = 0; // 正在演唱的时间rn private int color = 0xFF0000FF; // 歌词颜色rn rn public LyricView(Context context) rn super(context);rnrn // 生成paint rn paint = new Paint();rn rect.left = this.getLeft();rn rect.top = this.getTop();rn rect.right = this.getRight();rn rect.bottom = this.getBottom();rn rn rn public LyricView(Context context, AttributeSet attrs) // 构造方法;根据需要实现继承自View的方法 rn super(context, attrs);rn rn // 生成paint rn paint = new Paint();rn rect.left = 10;rn rect.top = 50;rn rect.right = 10;rn rect.bottom = 50;rn rn //对于我们自定义的类中,我们需要使用一个名为obtainStyledAttributes的方法来获取我们的定义。 rn //得到自定义控件的属性值。 rn [/code]
数据库无法附加。无法复制
sql 2005 在有活动链接的情况强制分离后rnrn无法复制,提示没有权限,也无法再附加,提示错误rnrn请问要如何做?rnrn很着急,谢谢先!
服务器无法无法保存session
很奇葩的问题。。,登陆有个验证码是用的session保存,第一次输入总是提示验证码错误,刷新一下就可以,登陆以后保存session但是再操作时session总是获取到null值,刚开始以为有其他代码干扰了结果我换成application还是获取不了,其他服务器都可以正常运行网站,就一台服务器不行,不知道要怎么弄了,还有个现象说一下,就是登陆以后极少时候可以获取到session或者application,绝大多数时候不可以。
PB 9中无法无法垂直居中
要做这样的一个报表rn----------------------------------------rn| 姓名 | 张三 | 性别 | 男 |婚否 | 否 |rn----------------------------------------rn|电话 | 1234 | 生日 | |职务 |经理|rn———————————————————————rn我手动调整了静态文本及字段的高度,数据窗口是freeform式rn线的形成是加了边框形成的表格式。发现内容在垂直靠上的位置,rn想居中,但不知道怎么做请高手指点rn自己想的是实在没办法用线划,那好像累哦rn下面还有家庭成员和工作经历来自另两个表,用ID关联,数据窗口窗口允许rn两个以上的sql源吗,复合式除外rn希望提供好的建议来生成这个报表
无法开机,无法重装,愁!
我的机子是没有单独主机箱的一体机,从旧货市场淘的,前一段时间不小心删了c盘的文件导致无法开机了,想重装系统,可机子只能读CD(不知道那算不算光驱),能借到的系统盘都读不出。现在不知怎么办了,请教各位高手,有好的建议不?机子的配置是:赛扬512内存,40G硬盘,主频1.68,还有一个软驱。呵呵,先劳烦各位了!
系统无法重启,无法重装
小弟最近装了核盾数据卫士,卸载之后就再也无法启动操作系统。小弟就决定重装系统,但是无法重装,安装程序提示writing protect!!!然后就用安装盘格式化,但不成功。然后小弟用安装盘启动到dos,用fdisk /mbr,然后屏幕显示writing protect!!!小弟现在已黔驴技穷,只好请求各位大侠指点迷津,雪地跪求中。。。。急。。。。
DirectShow 视屏窗口无法响应消息,无法移动,鼠标无法点击
DirectShow 视屏窗口无法响应消息,无法移动,鼠标无法点击rnrn下面是我directshow 显示窗口的代码rnrnpVidWin->put_Owner((OAHWND)hWnd);rnpVidWin->put_MessageDrain((OAHWND)hWnd);rnpVidWin->put_Visible(OATRUE);rnpVidWin->put_AutoShow(OATRUE);rnpVidWin->put_WindowStyle(WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN);rnpVidWin->SetWindowPosition(rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top)
无法编译,无法rebuilt,无法执行的“output.cpp”的问题
报错rnDeleting ubterneduate files and output files for projects"****"rnrn无法编译,无法rebuilt,报警,说是工程包里的“OUTPUT.cpp”和 VC里的“**\SRC|OUTPUT.cpp” 有冲突rnrn在线等。。。侠士援手。。rnrn出现的原因和解决办法
打开word提示无法复制文件无法:无法读取源文件和磁盘
我用的是word2007每次打开word时都提示无法复制文件无法:无法读取源文件和磁盘,从装了也不行!卡巴斯基杀毒也没问题。怎么办呀?
数据库无法导出,无法进行库内表复制…无法进行冷备,数据文件无法拷贝……完了完了……
redflag linux +oracle 9204+emc cx500,问题最早出现是盘阵上有一个硬盘报错,出现坏道,重拔插后正常,但是做rman远备报错,无法读取某个数据,于是做本地exp报错rnEXP-00056: ORACLE error 603 encounteredrnORA-00603: ORACLE server session terminated by fatal errorrnEXP-00056: ORACLE error 24324 encounteredrnORA-24324: service handle not initializedrnEXP-00056: ORACLE error 24324 encounteredrnORA-24324: service handle not initializedrnEXP-00056: ORACLE error 24324 encounteredrnORA-24324: service handle not initializedrnEXP-00056: ORACLE error 24324 encounteredrnORA-24324: service handle not initializedrnEXP-00000: Export terminated unsuccessfullyrn进行数据文件的拷贝,也报错,dd命令也无法读取,说是无权限,进行数据库内部的表复制,insert into tt select * from old_t ,插入一段时间后(两天左右)报错,说是异常终止,实在没法了,看看哪位能帮忙解决,谢谢。
百度地图无法定位,即无法调用onReceiveLocation。
//注册定位监听                     LocationClient mLocClient = app.mLocationClient;             mLocClient.registerLocationListener(new BDLocationListener()             {                             @O
mac废纸篓无法弹出框,无法关闭
MacBook有的时候出现废纸篓弹出框无法关闭,而这个时候废纸篓已经清理完毕了。 当我想要强行关闭的时候发现并不奏效。 于是我打开 activity monitor,想要停止 废纸篓,但是发现并找不到 于是我返回到废纸篓的那个弹出框,发现右上角显示的程序是 finder 于是只需要在 activity monitor里面停止到 finder 进程就可以了...
解决OFFice 2003无法卸载、无法安装问题
解决OFFice 2003无法卸载、无法安装问题 dos 修复
无法和DataPager和datagrid无法关联上。
xmal代码: rn rn rn rn rn rn rn rn rn rn rnrn后台:rn XDocument oDoc = XDocument.Load("File.xml");rnrn var myData1 = from info in oDoc.Descendants("item")rn select new Personrn rn FirstName = Convert.ToString(info.Element("FirstName").Value),rn LastName = Convert.ToString(info.Element("LastName").Value),rn Age = Convert.ToString(info.Element("Age").Value),rn IsMale = Convert.ToString(info.Element("IsMale").Value)rn ;rn rn mydata.ItemsSource = myData1;rn mydata.DataContext = myData1;rnrn PagedCollectionView listview = new PagedCollectionView(myData1);rn //FirstLastPreviousNextNumeric.Source = listview;rnrn FirstLastPreviousNextNumeric.PageSize = 3;rnrn FirstLastPreviousNextNumeric.DataContext = listview;
控件的DLL无法下载,无法注册
本人之前用ATL做的ActiveX控件,里面用到一些MFC的库,所以把MFC的dll一起打包到CAB文件中,但是发现不能下载到本地,控件也注册失败,哪位大侠知道怎么办,给个方法,照网上说的做的,都不行。
Myicq客户端无法注册,源代码无法编译
下了个 Myicq-0.8版源代码,里面附带了服务器端和客户端,但安装配置好了mysql数据库,以及按说明一步步走完后,确发现使用客户端无法注册号码。一直显示超时,网上看了下,很多人遇到该问题,不知道哪位有正常使用得经历。rn同时在编译源代码时,使用得berkely db也编译不过去,显示"/w64"错误。难道是下了64位不兼容32位系统,查了下它得网站,没发现有64位和32位得区别,有人遇到这样得问题吗?rnrn望有朋友尽快解答!
Applet无法运行无法想通的问题?
公司购买的某公司的软件含Applet程序。rnrn在windows2000下且没有安装JRE环境却可以运行,rnrn但是在win XP下装了JRE1.5却不能运行,报某类找不到的错误。rnrn能够有大人指点一二是什么原因?rnrn
Eclipse无法打开,提示无法找到JRE。
Eclipse无法打开,提示无法找到JRE。于是去下载了个jre-6u18-windows-i586来安装,却提示已经安转了JRE,无法继续安转啊。rn我想会不是没有安装JDK吧?之后又装了jdk-6u18-windows-i586 ,依旧无法打开Eclipse。rn只有再去看看环境变量的设置。后来发现没有设置环境变量。rn从新设置好环境变量就行了。rnrn有个问题是:我的Windows7系统会提示已经安转了JRE,无法继续安jre-6u18-windows-i586呢???
无法复制文件:无法读源文件或磁盘
怎么下载老出 无法复制文件:无法读源文件或磁盘 这个提示啊???rnrn我用的是IE8,在不装迅雷的情况下可以保存到桌面,但是如果装了迅雷,就无法下载,是代码问题还是要设置IE8的某些选项?rnrnrn
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件