用于Eclipse的新版ADT r17插件添加了自动设置JAR依赖项的功能./ libs文件夹中的任何.jar文件现在都会添加到构建配置中.不幸的是,Android Dependencies类路径容器是不可修改的.

如何将javadoc和源附加到自动插入的.jar(来自/ libs文件夹)?
我正在尝试创建2个版本的Android应用程序(免费/付费).我有一个Android库,其中包含两者共有的文件.我创建了一个新的Android项目,并尝试使用该库,但得到以下错误:
Found 2 versions of android-support-v4.jar in the dependency list,
but not all the versions are identical (check is based on SHA-1 only at this time).
All versions of the libraries must be the same at this time.
Versions found are:
Path: /Users/Zaheer/Developer/App Free/libs/android-support-v4.jar
Length: 349252
SHA-1: 612846c9857077a039b533718f72db3bc041d389
Path: /Users/Zaheer/Developer/App Library/libs/android-support-v4.jar
Length: 337562
SHA-1: 27c24d26e4c5d57976e6926367985548678e913c
Run Code Online (Sandbox Code Playgroud)
关于如何解决这个问题的任何想法?我一直在玩构建路径,但没有成功.
我正在尝试在我的应用中实现垂直滑动.(就像用ViewPager滑动一样,但是垂直方向).
我找到了Jake Whartons库Android-DirectionalViewPager.它是一个独立的.jar文件,除兼容性库外,还应包含该文件.我在我的项目中包含了该文件.它现在位于'Referenced Libraries'下,就像兼容库一样.
但问题是,我甚至无法得到图书馆给出的例子.调试器在线停止
setContentView(R.layout.main);
Run Code Online (Sandbox Code Playgroud)
'找不到来源'
LogCat抛出此错误:"05-23 14:43:13.583:E/dalvikvm(329):找不到类'com.directionalviewpager.DirectionalViewPager',从方法own.vvp.MainActivity.onCreate引用"
有人已经使用过这个库吗?我需要一些帮助 :)
这是我的代码:
清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="own.vvp"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
Run Code Online (Sandbox Code Playgroud)
布局:
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.directionalviewpager.DirectionalViewPager
android:id="@+id/pager"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="2dp"
android:orientation="horizontal">
<Button
android:id="@+id/horizontal"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:layout_marginRight="1dp"
android:text="Horizontal" />
<Button
android:id="@+id/vertical"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content" …Run Code Online (Sandbox Code Playgroud) 所以我已经将Facebook SDK和SlidingMenu SDK添加到我的Android项目中,但是我得到了那些令人讨厌的"Jar mismatch"错误.
我已经android-support-v4.jar从我的libs文件夹中删除了该文件,但错误仍然存在.
有想法该怎么解决这个吗?(我也试过删除文件夹中的文件,但是我收到'找不到文件'的错误)
在更新sdk和支持库之前,每件事都运行良好.更新后我刚刚添加了支持库(意味着用资源导入了支持库).一旦我添加它我得到以下错误
错误:
[2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
[2014-11-12 13:28:16 - android-support-v7-appcompat]
[2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
[2014-11-12 13:28:16 - android-support-v7-appcompat]
[2014-11-12 13:28:16 - android-support-v7-appcompat] E:\Android Projects\android-support-v7-appcompat\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
[2014-11-12 13:28:16 - android-support-v7-appcompat]
[2014-11-12 13:28:16 - …Run Code Online (Sandbox Code Playgroud) 我是Android开发的新手,也是Eclipse的新手.每当我创建一个应用程序时,它只会出错
我的平台:
Android sdk-tools:23.0.5 Android sdkplatform-tools:21 Android sdkbuild-tools:21.1
错误:
[2014-11-03 15:58:24 - Test] Found 2 versions of android-support-v4.jar in the dependency list,
[2014-11-03 15:58:24 - Test] but not all the versions are identical (check is based on SHA-1 only at this time).
[2014-11-03 15:58:24 - Test] All versions of the libraries must be the same at this time.
[2014-11-03 15:58:24 - Test] Versions found are:
[2014-11-03 15:58:24 - Test] Path: C:\Users\Zain-ul-abdeen\workspace\Test\libs\android-support-v4.jar
[2014-11-03 15:58:24 - Test] Length: 987314
[2014-11-03 15:58:24 - …Run Code Online (Sandbox Code Playgroud)