我使用的IntelliJ / Android的一室公寓Ant构建(不摇篮的时刻),并正尝试使用Android支持-V7-cardview.jar但我继续得到
I'm using IntelliJ/Android Studio with Ant build (not Gradle at the moment), and am trying to use android-support-v7-cardview.jar but I continue to get
android.view.InflateException: Binary XML file line #19: Error inflating class android.support.v7.widget.CardView
java.lang.NoClassDefFoundError: android.support.v7.cardview.R$styleable
我不使用m2repository与AAR文件,但现在用在位置cardview
I am not using m2repository with the aar file, but am using the cardview at location
sdk/extras/android/support/v7
我得到它通过使用在自己的项目中的JAR类的工作,但它需要的API 21(5.0),我不想尚未使用。我试图使用libs文件夹和文件资源的jar文件从
I have gotten it to work by using the classes from the jar in my own project, but it requires API 21 (5.0) which I don't want to use yet. I am trying to use the jar file in the libs folder and res files from
sdk/extras/android/support/v7/cardview/res
我添加的lib文件和资源文件,以我自己的项目,但仍获得上述错误消息。我应该怎么办?
I have added the lib file and res files to my own project, but still get the error messages above. What should I do?
我没弄明白错误真的,但我只是注释掉了采用Android 5.0的库源$ C $ c中的东西,它的工作原理精细。我不想使用Android 5.0的minSdk。
I didn't figure out the error really but I just commented out the stuff that uses Android 5.0 in the source code of the library and it works fine. I didn't want to use a minSdk of Android 5.0.