【发布时间】:2012-10-18 04:56:57
【问题描述】:
我正在尝试在 intelli j 中使用来自 android 支持库 v4 的 viewpager。目前,我使用的是 Android SDK 4.1
我将 android-support-v4.jar 复制到我的 intellij android 项目的“libs”下
在intellij的项目设置中
我去了 "Modules" => "MyModuleName" => dependencies 选项卡,并通过导航到我自己项目下的 libs/ 文件夹的路径来添加 android-support-v4.jar
我检查了除了这个新添加的 jar 文件之外的“导出”
但我仍然无法在我的应用程序中使用 viewpager。
我收到如下崩溃消息:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxxx/com.xxxx.MyActivity}: android.view.InflateException: Binary XML file line #13: Error inflating class android.support.v4.view.ViewPager
【问题讨论】:
-
库应该加载这个配置,问题出在其他地方。如果没有可复制的样本,很难分辨出具体在哪里。
-
如果我把导出的项目文件发给你会有帮助吗?来自intellij的
-
压缩并共享项目目录。
-
您好,很抱歉回复晚了...我有工作...我已将其发送到您的 gmail..
标签: android intellij-idea android-support-library