I was studying appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable' to see if it had any relevance to me and it unfortunately does not. I hope this is relevant to some of you and you may be able to help.
I need to set my Project Build Target in Eclipse to less than API21. API21 is Android 5.x and has major changes rendering native code incompatible. Please see Cannot load library: reloc_library[1285]: cannot locate 'rand'. I cannot target API21 for projects with native code, even that is just importing the .so
library that I made in a parallel project (with API16).
I don't think I really need appcompat, but decided I did long ago, when it was easier. I certainly don't need API21 so might just have to delete Forget deleting just res/values-v21
.res/values-v21
, I've re-checked further up the log and both v14
and v17
are in violation, despite Eclipse not highlighting as red flags in anything but the console- Package Explorer is clean, as is file view. Except that the .xml
errors are causing my R.java
to not get built. Otherwise I must go back to SDK tools before API21 existed with their android-support-v7-appcompat.
To repeat linked content, if I use API21 I get:
01-20 11:42:16.440: E/AndroidRuntime(29173): FATAL EXCEPTION: main
01-20 11:42:16.440: E/AndroidRuntime(29173): java.lang.UnsatisfiedLinkError: Cannot load library: reloc_library[1322]: 124 cannot locate 'rand'...
01-20 11:42:16.440: E/AndroidRuntime(29173): at java.lang.Runtime.loadLibrary(Runtime.java:370)
01-20 11:42:16.440: E/AndroidRuntime(29173): at java.lang.System.loadLibrary(System.java:535)
01-20 11:42:16.440: E/AndroidRuntime(29173): at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:85)
01-20 11:42:16.440: E/AndroidRuntime(29173): at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:99)
on my 4.1.2 phone, though not on any emulator, even 4.1.2 (API16) one.
and it I don't use API21 it refuses to build.
EDIT I'm going to try breaking dependencies on android-support-v4 as I recall having to update that in several places, once outside the following search path, where I appear to have 4 different versions: