2278514 0 ارسال شده در ۳ مرداد ۱۳۹۷ گزارش اشتراک گذاری ارسال شده در ۳ مرداد ۱۳۹۷ سلام علیکم من تازه دارم اندروید استودیو رو یاد میگیرم بعد از اینکه اولین پروژه رو ساختم وقتی وارد لایوت ویک دکمه اضافه کردم با ارور های زیر مواجه شدم در ضمنTextView و Button و ... نمایش داده نمیشوند render problem* Failed to load AppCompat ActionBar with unknown error. Tip: Try to refresh the layout. missing constraints in constraintLayout* This view is not constrained. It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints The layout editor allows you to place widgets anywhere on the canvas, and it records the current position with designtime attributes (such as layout_editor_absoluteX). These attributes are not applied at runtime, so if you push your layout on a device, the widgets may appear in a different location than shown in the editor. To fix this, make sure a widget has both horizontal and vertical constraints by dragging from the edge connections. hardcoded text* Hardcoded string "Button", should use @string resource Hardcoding text attributes directly in layout files is bad for several reasons: * When creating configuration variations (for example for landscape or portrait)you have to repeat the actual text (and keep it up to date when making changes) * The application cannot be translated to other languages by just adding new translations for existing string resources. There are quickfixes to automatically extract this hardcoded string into a resource lookup. filed to instantait one or more classes * The following classes could not be instantiated: - android.support.v7.widget.ActionBarContainer (Open Class, Show Exception, Clear Cache) - android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache) - android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. Exception Details java.lang.ClassNotFoundException: android.view.View$OnUnhandledKeyEventListener Copy stack to clipboard نقل قول لینک ارسال به اشتراک گذاری در سایت های دیگر
aminkhan 2 ارسال شده در ۲۰ مرداد ۱۳۹۷ گزارش اشتراک گذاری ارسال شده در ۲۰ مرداد ۱۳۹۷ (ویرایش شده) در bulid.gradle برای استفاده از appCompat.v7 باید خط زیر رو وارد کنید implementation 'com.android.support:appcompat-v7:26.0.2' ودر مورد اررور hardcoded @string باید نام ویجت را چک کنید و مسیر زیر رو بازبینی کنید res>valus>string ویرایش شده ۲۰ مرداد ۱۳۹۷ توسط aminkhan 1 نقل قول لینک ارسال به اشتراک گذاری در سایت های دیگر
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .