gpt4 book ai didi

android - 无法从 Eclipse 迁移到 IntelliJ IDEA。这个日志是什么意思?

转载 作者:搜寻专家 更新时间:2023-11-01 07:55:32 25 4
gpt4 key购买 nike

好吧,Google 让我迁移到这个我以前从未见过并且目前为止不喜欢的 IDE。

我尝试导入我的项目,虽然我能理解导入摘要中的内容,但我不知道如何处理它,因为它没有提供我的选项的任何线索。

无论如何,我认为我可以构建它,尝试运行并一次找出每个错误。傻我。

它可以构建,但只有接下来的两个警告,但我无法运行。我点击运行,它向我显示了这两个警告以及这个错误,当然,我也无法理解或找到解决方案。

这是日志,非常感谢任何有关警告、错误或导入摘要的帮助。

谢谢。

Warning:Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
Warning:Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
:MyApp:preBuild
:MyApp:compileDebugNdk UP-TO-DATE
:MyApp:preDebugBuild
:MyApp:checkDebugManifest
:MyApp:preReleaseBuild
:googlelicencinglib:compileLint
:googlelicencinglib:copyReleaseLint UP-TO-DATE
:googlelicencinglib:mergeReleaseProguardFiles UP-TO-DATE
:googlelicencinglib:preBuild
:googlelicencinglib:preReleaseBuild
:googlelicencinglib:checkReleaseManifest
:googlelicencinglib:prepareReleaseDependencies
:googlelicencinglib:compileReleaseAidl UP-TO-DATE
:googlelicencinglib:compileReleaseRenderscript UP-TO-DATE
:googlelicencinglib:generateReleaseBuildConfig UP-TO-DATE
:googlelicencinglib:generateReleaseAssets UP-TO-DATE
:googlelicencinglib:mergeReleaseAssets UP-TO-DATE
:googlelicencinglib:generateReleaseResValues UP-TO-DATE
:googlelicencinglib:generateReleaseResources UP-TO-DATE
:googlelicencinglib:packageReleaseResources UP-TO-DATE
:googlelicencinglib:processReleaseManifest UP-TO-DATE
:googlelicencinglib:processReleaseResources UP-TO-DATE
:googlelicencinglib:generateReleaseSources UP-TO-DATE
:googlelicencinglib:compileReleaseJava UP-TO-DATE
:googlelicencinglib:processReleaseJavaRes UP-TO-DATE
:googlelicencinglib:packageReleaseJar UP-TO-DATE
:googlelicencinglib:compileReleaseNdk UP-TO-DATE
:googlelicencinglib:packageReleaseJniLibs UP-TO-DATE
:googlelicencinglib:packageReleaseLocalJar UP-TO-DATE
:googlelicencinglib:packageReleaseRenderscript UP-TO-DATE
:googlelicencinglib:bundleRelease UP-TO-DATE
:MyApp:prepareMyAppGooglelicencinglibUnspecifiedLibrary UP-TO-DATE
:MyApp:prepareComAndroidSupportSupportV42100Library UP-TO-DATE
:MyApp:prepareComGoogleAndroidGmsPlayServices6587Library UP-TO-DATE
:MyApp:prepareDebugDependencies
:MyApp:compileDebugAidl UP-TO-DATE
:MyApp:compileDebugRenderscript UP-TO-DATE
:MyApp:generateDebugBuildConfig UP-TO-DATE
:MyApp:generateDebugAssets UP-TO-DATE
:MyApp:mergeDebugAssets UP-TO-DATE
:MyApp:generateDebugResValues UP-TO-DATE
:MyApp:generateDebugResources UP-TO-DATE
:MyApp:mergeDebugResources UP-TO-DATE
:MyApp:processDebugManifest UP-TO-DATE
:MyApp:processDebugResources UP-TO-DATE
:MyApp:generateDebugSources UP-TO-DATE
:MyApp:compileDebugJava UP-TO-DATE
:MyApp:preDexDebug
:MyApp:dexDebug


UNEXPECTED TOP-LEVEL EXCEPTION:
Error:Execution failed for task ':MyApp:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
E:\DEV\SDK Android Studio\build-tools\21.1.2\dx.bat --dex --no-optimize --output E:\DEV\Workspace_Android_Studio\MyApp\MyApp\build\intermediates\dex\debug --input-list=E:\DEV\Workspace_Android_Studio\MyApp\MyApp\build\intermediates\tmp\dex\debug\inputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/api/client/util/StreamingContent;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)

如果我的导入摘要能以某种方式提供帮助,那就是:

ECLIPSE ANDROID PROJECT IMPORT SUMMARY
======================================

Manifest Merging:
-----------------
Your project uses libraries that provide manifests, and your Eclipse
project did not explicitly turn on manifest merging. In Android Gradle
projects, manifests are always merged (meaning that contents from your
libraries' manifests will be merged into the app manifest. If you had
manually copied contents from library manifests into your app manifest
you may need to remove these for the app to build correctly.

Ignored Files:
--------------
The following files were *not* copied into the new Gradle project; you
should evaluate whether these are still needed in your project and if
so manually move them:

From MyApp:
* .google_apis\
* .google_apis\desktop.ini
* .google_apis\drive-v2\
* .google_apis\drive-v2\desktop.ini
* .google_apis\drive-v2\drive\
* .google_apis\drive-v2\drive\descriptor.json
* .google_apis\drive-v2\drive\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\
* .google_apis\drive-v2r107lv1.16.0-rc\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\drive\
* .google_apis\drive-v2r107lv1.16.0-rc\drive\LICENSE.txt
* .google_apis\drive-v2r107lv1.16.0-rc\drive\classpath-include
* .google_apis\drive-v2r107lv1.16.0-rc\drive\dependencies\
* .google_apis\drive-v2r107lv1.16.0-rc\drive\dependencies\css\
* .google_apis\drive-v2r107lv1.16.0-rc\drive\dependencies\css\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\drive\dependencies\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\drive\descriptor.json
* .google_apis\drive-v2r107lv1.16.0-rc\drive\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\drive\google-api-services-drive-v2-rev107-1.16.0-rc-javadoc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\google-api-services-drive-v2-rev107-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\google-api-services-drive-v2-rev107-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\google-api-services-drive-v2-rev107-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\icons\
* .google_apis\drive-v2r107lv1.16.0-rc\drive\icons\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\drive\icons\drive_icon_16.png
* .google_apis\drive-v2r107lv1.16.0-rc\drive\icons\drive_icon_32.png
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-api-client-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-api-client-android-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-http-client-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-http-client-android-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-http-client-gson-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-http-client-jackson-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-http-client-jackson2-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\google-oauth-client-1.16.0-rc-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\gson-2.1-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\jackson-core-2.1.3-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs-sources\jackson-core-asl-1.9.11-sources.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\desktop.ini
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-api-client-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-api-client-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-api-client-android-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-api-client-android-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-android-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-android-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-gson-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-gson-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-jackson-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-jackson-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-jackson2-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-http-client-jackson2-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-oauth-client-1.16.0-rc.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\google-oauth-client-1.16.0-rc.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\gson-2.1.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\gson-2.1.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\jackson-core-2.1.3.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\jackson-core-2.1.3.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\jackson-core-asl-1.9.11.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\jackson-core-asl-1.9.11.jar.properties
* .google_apis\drive-v2r107lv1.16.0-rc\drive\libs\jsr305-1.3.9.jar
* .google_apis\drive-v2r107lv1.16.0-rc\drive\proguard-google-api-client.txt
* .google_apis\drive-v2r107lv1.16.0-rc\drive\readme.html
* .google_apis\drive-v2r108lv1.16.0-rc\
* .google_apis\drive-v2r108lv1.16.0-rc\desktop.ini
* .google_apis\drive-v2r108lv1.16.0-rc\drive\
* .google_apis\drive-v2r108lv1.16.0-rc\drive\LICENSE.txt
* .google_apis\drive-v2r108lv1.16.0-rc\drive\classpath-include
* .google_apis\drive-v2r108lv1.16.0-rc\drive\dependencies\
* .google_apis\drive-v2r108lv1.16.0-rc\drive\dependencies\desktop.ini
* .google_apis\drive-v2r108lv1.16.0-rc\drive\descriptor.json
* .google_apis\drive-v2r108lv1.16.0-rc\drive\desktop.ini
* .google_apis\drive-v2r108lv1.16.0-rc\drive\google-api-services-drive-v2-rev108-1.16.0-rc-javadoc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\google-api-services-drive-v2-rev108-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\google-api-services-drive-v2-rev108-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\google-api-services-drive-v2-rev108-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\icons\
* .google_apis\drive-v2r108lv1.16.0-rc\drive\icons\desktop.ini
* .google_apis\drive-v2r108lv1.16.0-rc\drive\icons\drive_icon_16.png
* .google_apis\drive-v2r108lv1.16.0-rc\drive\icons\drive_icon_32.png
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\desktop.ini
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-api-client-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-api-client-android-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-http-client-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-http-client-android-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-http-client-gson-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-http-client-jackson-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-http-client-jackson2-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\google-oauth-client-1.16.0-rc-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\gson-2.1-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\jackson-core-2.1.3-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs-sources\jackson-core-asl-1.9.11-sources.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\desktop.ini
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-api-client-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-api-client-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-api-client-android-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-api-client-android-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-android-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-android-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-gson-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-gson-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-jackson-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-jackson-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-jackson2-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-http-client-jackson2-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-oauth-client-1.16.0-rc.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\google-oauth-client-1.16.0-rc.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\gson-2.1.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\gson-2.1.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\jackson-core-2.1.3.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\jackson-core-2.1.3.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\jackson-core-asl-1.9.11.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\jackson-core-asl-1.9.11.jar.properties
* .google_apis\drive-v2r108lv1.16.0-rc\drive\libs\jsr305-1.3.9.jar
* .google_apis\drive-v2r108lv1.16.0-rc\drive\proguard-google-api-client.txt
* .google_apis\drive-v2r108lv1.16.0-rc\drive\readme.html
* desktop.ini
* icone-alta-512.png
* proguard\
* proguard\dump.txt
* proguard\mapping.txt
* proguard\seeds.txt
* proguard\usage.txt
From google-licencing-lib:
* aidl\
* aidl\ILicenseResultListener.aidl
* aidl\ILicensingService.aidl

Replaced Jars with Dependencies:
--------------------------------
The importer recognized the following .jar files as third party
libraries and replaced them with Gradle dependencies instead. This has
the advantage that more explicit version information is known, and the
libraries can be updated automatically. However, it is possible that
the .jar file in your project was of an older version than the
dependency we picked, which could render the project not compileable.
You can disable the jar replacement in the import wizard and try again:

android-support-v4.jar => com.android.support:support-v4:19.1.0
google-http-client-gson-1.16.0-rc.jar => com.google.http-client:google-http-client-gson:1.19.0
gson-2.1.jar => com.google.code.gson:gson:2.1

Potentially Missing Dependency:
-------------------------------
When we replaced the following .jar files with a Gradle dependency, we
inferred the dependency version number from the filename. This
specific version may not actually be available from the repository.
If you get a build error stating that the dependency is missing, edit
the version number to for example "+" to pick up the latest version
instead. (This may require you to update your code if the library APIs
have changed.)

gson-2.1.jar => version 2.1 in com.google.code.gson:gson:2.1

Replaced Libraries with Dependencies:
-------------------------------------
The importer recognized the following library projects as third party
libraries and replaced them with Gradle dependencies instead. This has
the advantage that more explicit version information is known, and the
libraries can be updated automatically. However, it is possible that
the source files in your project were of an older version than the
dependency we picked, which could render the project not compileable.
You can disable the library replacement in the import wizard and try
again:

google-play-services_lib => [com.google.android.gms:play-services:+]

Moved Files:
------------
Android Gradle projects use a different directory structure than ADT
Eclipse projects. Here's how the projects were restructured:

In google-licencing-lib:
* AndroidManifest.xml => googlelicencinglib\src\main\AndroidManifest.xml
* assets\ => googlelicencinglib\src\main\assets\
* res\ => googlelicencinglib\src\main\res\
* src\ => googlelicencinglib\src\main\java\
In MyApp:
* AndroidManifest.xml => MyApp\src\main\AndroidManifest.xml
* assets\ => MyApp\src\main\assets\
* libs\google-api-client-1.16.0-rc.jar => MyApp\libs\google-api-client-1.16.0-rc.jar
* libs\google-api-client-android-1.16.0-rc.jar => MyApp\libs\google-api-client-android-1.16.0-rc.jar
* libs\google-api-services-drive-v2-rev108-1.16.0-rc.jar => MyApp\libs\google-api-services-drive-v2-rev108-1.16.0-rc.jar
* libs\google-http-client-1.16.0-rc.jar => MyApp\libs\google-http-client-1.16.0-rc.jar
* libs\google-http-client-android-1.16.0-rc.jar => MyApp\libs\google-http-client-android-1.16.0-rc.jar
* libs\google-http-client-jackson-1.16.0-rc.jar => MyApp\libs\google-http-client-jackson-1.16.0-rc.jar
* libs\google-http-client-jackson2-1.16.0-rc.jar => MyApp\libs\google-http-client-jackson2-1.16.0-rc.jar
* libs\google-oauth-client-1.16.0-rc.jar => MyApp\libs\google-oauth-client-1.16.0-rc.jar
* libs\jackson-core-2.1.3.jar => MyApp\libs\jackson-core-2.1.3.jar
* libs\jackson-core-asl-1.9.11.jar => MyApp\libs\jackson-core-asl-1.9.11.jar
* libs\jsr305-1.3.9.jar => MyApp\libs\jsr305-1.3.9.jar
* lint.xml => MyApp\lint.xml
* proguard-google-api-client.txt => MyApp\proguard-google-api-client.txt
* proguard-project.txt => MyApp\proguard-project.txt
* res\ => MyApp\src\main\res\
* src\ => MyApp\src\main\java\

Next Steps:
-----------
You can now build the project. The Gradle project needs network
connectivity to download dependencies.

Bugs:
-----
If for some reason your project does not build, and you determine that
it is due to a bug or limitation of the Eclipse to Gradle importer,
please file a bug at http://b.android.com with category
Component-Tools.

(This import summary is for your information only, and can be deleted
after import once you are satisfied with the results.)

根据要求,这是我在导入时生成的 3 个 bruild.grade 文件:一个是我的应用名称大写,一个是我的应用名称首字母小写,另一个来自 googlelicencinglib。

我还在努力理解这个 grade.build 文件...

build.grade(项目:MyApp)

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}

allprojects {
repositories {
jcenter()
}
}

build.grade(模块:myApp)

apply plugin: 'com.android.application'

android {
compileSdkVersion 'Google Inc.:Google APIs:19'
buildToolsVersion "21.1.2"

defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 11
targetSdkVersion 19
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt', 'proguard-google-api-client.txt'
}
}
}

dependencies {
compile project(':googlelicencinglib')
compile 'com.android.support:support-v4:19.1.0'
compile 'com.google.http-client:google-http-client-gson:1.19.0'
compile 'com.google.code.gson:gson:2.1'
compile 'com.google.android.gms:play-services:+'
compile files('libs/google-api-client-1.16.0-rc.jar')
compile files('libs/google-api-client-android-1.16.0-rc.jar')
compile files('libs/google-api-services-drive-v2-rev108-1.16.0-rc.jar')
compile files('libs/google-http-client-1.16.0-rc.jar')
compile files('libs/google-http-client-android-1.16.0-rc.jar')
compile files('libs/google-http-client-jackson-1.16.0-rc.jar')
compile files('libs/google-http-client-jackson2-1.16.0-rc.jar')
compile files('libs/google-oauth-client-1.16.0-rc.jar')
compile files('libs/jackson-core-2.1.3.jar')
compile files('libs/jackson-core-asl-1.9.11.jar')
compile files('libs/jsr305-1.3.9.jar')
}

build.grade(模块:googlelicencinlib)

apply plugin: 'com.android.library'

android {
compileSdkVersion 'Google Inc.:Google APIs:19'
buildToolsVersion "21.1.2"

defaultConfig {
minSdkVersion 3
targetSdkVersion 15
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

最佳答案

看起来这个依赖关系不正确并导致构建失败:

compile files('libs/google-api-client-1.16.0-rc.jar')

现在,您的项目同时依赖于桌面版和 Android 版 API 客户端库,这会导致构建失败,因为它们定义了相同的类。您需要删除对桌面版本的依赖。

关于android - 无法从 Eclipse 迁移到 IntelliJ IDEA。这个日志是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28222284/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com