- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
好吧,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/
我有以下内容: sourceSets { integrationTest { java.srcDir file('.') } } dependencies {
有没有一种简单的方法可以在 IntelliJ IDEA 中为非 Java 项目配置完全自定义的构建过程?基本上,我只需要运行一个自定义的 shell 命令,而不是任何更智能的构建过程。 最佳答案 尝试
有没有办法用快捷方式将变量拉到 try-catch 块之外?例如: 来自: try{ AbstractList t1 = new ArrayList(); } catch (Exception
当我启动 IntelliJ IDEA 时,会出现该消息,但我找不到有关该功能的任何信息以及它如何帮助我。 Enable smart keyboard internalization for IDEA.
这个问题在这里已经有了答案: 10年前关闭。 Possible Duplicate: Intellij Idea 9, what folders to check into (or not check
我的目录中有一个名为 protected.keys 的新资源文件。创建它时,我要求 IntelliJ 将其视为 properties。 相反,我想将其更改为 text 请问我该怎么做? 最佳答案 您可
我的目录中有一个名为 protected.keys 的新资源文件。创建它时,我要求 IntelliJ 将其视为 properties。 相反,我想将其更改为 text 请问我该怎么做? 最佳答案 您可
我有一个带有两个 child 的 Gradle 的 Kotlin 项目。每当我尝试在 IDEA 中打开它时,其中一个 child 会在树中显示两次。 在树中,您可以在顶层看到两个项目,grpc 和 g
我不确定这是更多 Gradle 还是 Intellij Idea 问题。在 projet 中,我使用 gradle import(从 Idea 中的 Gradle 外部模型导入)导入到 Idea,我的
我在 Gradle 多项目配置上使用 idea 插件来生成 Intellij 配置文件。目前,构建在 Gradle 中运行良好,但由于缺少 JPA 元模型源文件,它在 IDE 上给了我错误。 我的问题
我在 事件日志 中得到信息 08:54:02 无法导入 maven 项目:查看日志了解详情 在 Intellij IDEA 15CE 中哪里可以找到这个日志文件? 最佳答案 您可以从 Help 访问事
我的 IntelliJ IDEA 有问题。当我打开 Find in Path 时,它显示在第二个监视器的模态窗口中,而不是像以前一样显示在主窗口内的窗口中。无法将该窗口移动到主监视器。我不记得我是否更
我按照以下 session 中的说明安装了 IntelliJ IDEA。 Install IntelliJ IDEA as a snap package on Linux sudo snap inst
可以在 IntelliJ IDEA 中配置多种类型的终端,例如cmd、powershell、git bash 等? 最佳答案 目前不可能,但有一个相关的功能请求:https://youtrack.je
我下载了 intellij 社区版。DropToFrame 是不是只有终极版才有? 任何其他插件将此添加到 intellij 社区版 谢谢 最佳答案 Drop Frame 已重命名为 Reset Fr
每次写“todo”评论时,我都面临着写我的 vcs 当前分支名称的问题。 最近我了解了 Intellij 的“Live Templates”,使用起来非常舒服。我尝试将它应用于我的问题,但没有模板可以
有一天,我运行了一些大的东西,弹出一个窗口说堆内存内存不足,我在那个窗口中将其设置为2014M,然后单击继续。一切都很好。 但我不喜欢数字 2014,我想要它 2048。因此,我更改了 idea64.
当我尝试编辑和保存 javascript 文件时,IntelliJ 使它不可能: 无法保存 C:\Users\dev\joo-web\trunk\joo-admin-web\src\main\weba
我在一个相当大的项目中升级了 IntelliJ Idea 中的语言级别,我想找到所有已弃用的方法用法 - 我寻找所有出现的罢工。 我为 PhpStorm 找到了一个类似的问题建议的方法在哪里: 代码
我必须对使用匈牙利表示法的遗留代码(以及系统匈牙利语)进行一些维护。不幸的是,将它全部从代码库中清除对我来说是不切实际的。 本地 Eclipse 用户声称可以配置 Eclipse 以便自动生成的访问器
我是一名优秀的程序员,十分优秀!