Tôi đã làm việc để ứng dụng thực hành facebook hoạt động và tôi không thể biết được lý do tại sao tôi không thể tham khảo LoginButton được tìm thấy trong Facebook SDK. Dưới đây là lỗi mà tôi đang gặp phải khi tôi nhìn vào bố trí xác định LoginButton.Các lớp sau đây không thể được khởi tạo: - com.facebook.widget.LoginButton
<com.facebook.widget.LoginButton
android:id="@+id/authButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dp"
/>
The following classes could not be instantiated:
- com.facebook.widget.LoginButton (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
android.content.res.Resources$NotFoundException: Could not resolve resource value: 0x7F070004.
at android.content.res.BridgeResources.throwException(BridgeResources.java:693)
at android.content.res.BridgeResources.getColor(BridgeResources.java:185)
at com.facebook.widget.LoginButton.<init>(LoginButton.java:211)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0( at sun.reflect.NativeConstructorAccessorImpl.newInstance( at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.instantiateClass(ProjectCallback.java:422)
at com.android.ide.eclipse.adt.internal.editors.layout.ProjectCallback.loadView(ProjectCallback.java:179)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:207)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:135)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:746)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:64)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:718)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:372)
Bất cứ ai có bất cứ ý tưởng là tại sao điều này xảy ra? Tôi dường như không thể nhận được bất kỳ phản ứng nào. –
Eclipse đang cố gắng hiển thị bản xem trước của phần tử nhưng không thể tải tài nguyên tại 0x7F070004, dường như là tài nguyên màu. Kiểm tra R.java đã tạo ra để tìm ra phần tử nào. Hoặc là nó không nằm trong dự án của bạn, hoặc thiếu từ một trong các thư viện. ... Tôi nghĩ .... Tôi gặp rắc rối với điều này cho các nguồn lực hoạt động tốt khi chạy ứng dụng trên thiết bị hoặc trình mô phỏng. Tôi vẫn đang nghiên cứu vấn đề ... –
Tôi có cùng một vấn đề, tôi nhận thấy nó xảy ra nguyên nhân của việc sử dụng dịch vụ google play, tôi chưa có giải pháp nào – user1325188