Hellow 

i was have a problem from monthes that fixed with this code:
in app build.gradle:
    configurations.all {
        resolutionStrategy {
            force 'com.android.support:support-v4:23.+'
            force 'com.android.support:appcompat-v7:23.+'
        }
    }

and every thing was working fine

untill i updated google repository and by wrong updated android support 
repository too (SDK manager)
so i can use:
com.google.android.gms:play-services-ads:9.8.0
com.google.android.gms:play-services-location:9.8.0

and then have so many errors like somthing in java.exe , another thing 
about dublicate entry
but i hardly fixed all of them by searching online

now no errors while building my APK but once open the app on my phone it 
craches

then noticed that in all my layouts (.xml) that i use 
 android.support.design.widget.NavigationView  inside them telling me this 
error:

Rendering Problems The following classes could not be instantiated:
- android.support.design.widget.NavigationView (Open Class, Show Exception, 
Clear Cache)
- android.support.design.internal.NavigationMenuView (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


i clicked on open class and found many line that cannot be resolved:

import android.support.annotation.DrawableRes;
import android.support.annotation.IdRes;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.StyleRes;
import android.support.design.R;
import android.support.design.internal.NavigationMenu;
import android.support.design.internal.NavigationMenuPresenter;
import android.support.design.internal.ScrimInsetsFrameLayout;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewCompat;
import android.support.v7.internal.view.SupportMenuInflater;
import android.support.v7.internal.view.menu.MenuBuilder;
import android.support.v7.internal.view.menu.MenuItemImpl;

some of this lines is in other class that i made and working fine but in 
NavigationView.class and NavigationMenuPresenter.java it cannot be resolved 
!!!!!


so any help please ?? :D

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/21b7e66c-6dff-4437-b6b8-16fbe03a9648%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to