Reputation: 179
I'm trying to implement Material Design with backward compatibility using AppCompat.
Following the tutorial.
But I'm getting the following error
Error 1 error: package android.support.v4.app.FragmentManager does not exist
android.support.v4.app.FragmentManager.OnBackStackChangedListener
C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\app\FragmentManager_OnBackStackChangedListenerImplementor.java 8 41 TemaMaterial
Error 2 error: package android.support.v4.content.Loader does not exist
android.support.v4.content.Loader.OnLoadCompleteListener
C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 8 36 TemaMaterial
Error 3 error: package android.support.v4.content does not exist
public void onLoadComplete (android.support.v4.content.Loader p0, java.lang.Object p1)
C:\Users\Italo\Documents\Xamarin\TemaMaterial\TemaMaterial\obj\Debug\android\src\mono\android\support\v4\content\Loader_OnLoadCompleteListenerImplementor.java 27 56 TemaMaterial
It says that the package does not existe, but it exists. I still can't add images, so, here is the link
Upvotes: 3
Views: 3576
Reputation: 97
I had a similar issue to yours and resolved it by:
Hope this helps.
Upvotes: 3
Reputation: 179
Apparently the problem occur because the zip file android_m2repository_r14
is corrupted. So is necessary download manually and unzip at %localappdata%\Xamarin\Android.Support.v4
and %localappdata%\Xamarin\Android.Support.v7.AppCompat
folders
I also installed Google APIs and Sources for Android SDK
Upvotes: 3