草庐IT

dependency-resolution

全部标签

android - 带有 android 插件的 Eclipse - 在 "calculating requirements and dependencies"处被阻止

我在Eclipse中安装Android时遇到问题(Indigo和Helios,我尝试了许多不同的版本)。当我使用地址搜索插件时http://dl-ssl.google.com/android/eclipse/,或localy(使用存档),它不起作用。它找到了开发工具,但它在“计算需求和依赖关系”处阻塞。有什么问题? 最佳答案 如果您从本地站点安装,请取消选中“在安装过程中联系所有更新站点以查找所需的软件”。 关于android-带有android插件的Eclipse-在"calculat

安卓 : Cannot complete the install because of a conflicting dependency

这个问题在这里已经有了答案:UpdateEclipsewithAndroiddevelopmenttoolsv.23(43个回答)关闭8年前。我正在安装新软件,使用此链接:https://dl-ssl.google.com/android/eclipse/但总是得到:操作无法完成。查看详情。Cannotcompletetheinstallbecauseofaconflictingdependency.Softwarebeinginstalled:AndroidDDMS23.0.2.1259578(com.android.ide.eclipse.ddms.feature.feature.

android - java.lang.NoClassDefFoundError : Failed resolution of: Landroid/support/v4/os/BuildCompat

在我的Eclipse安装中,我已将AppCompat库更新为24.2.1,并将SDK更新为Android7。从那以后,我无法运行我的任何应用程序。如果您能对此有所帮助,我将不胜感激...E/AndroidRuntime(17555):java.lang.NoClassDefFoundError:Failedresolutionof:Landroid/support/v4/os/BuildCompat;E/AndroidRuntime(17555):atandroid.support.v7.app.AppCompatDelegate.create(AppCompatDelegate.ja

android - 此类文件的 Jar 属于容器 'Android Dependencies',该容器不允许修改其条目上的源附件

我正在制作一个电子邮件应用程序,该应用程序在此问题的标题中给出了错误。我该如何解决这个问题?如果有助于找到解决方案,我将提供我的代码截图。 最佳答案 对此有官方解决方案:Allowsrc/docattachementfor3rdpartyjarsinlibs/Sincethosejarsareaddeddynamicallythroughaclasspathcontainer,thedevscannotsetthesourcepathandthejavadocthroughEclipseUI(containerdon'tallowe

android - 警告 :Conflict with dependency 'com.android.support:support-annotations'

我几乎尝试了书中的所有技巧。ResolutionStrategy.force排除模块但似乎没有任何效果,下面是我的build.gradle。我正在使用Gradle1.2.3版。有人可以说明我的代码还有什么问题吗?我唯一没有尝试过的是更改Gradle的版本。这是一个非常基本的Espresso测试用例。谢谢!applyplugin:'com.android.application'android{configurations.all{resolutionStrategy.force'com.android.support:support-annotations:22.1.0'}compil

android - Dagger 2 错误 : dependency "cannot be provided without an @Inject constructor" while it actually annotated with @Inject

我已经开始使用Dagger2,遇到了一个奇怪的问题,对我来说似乎是一个错误。我有3个模块,它们组合成一个子组件,进而扩展/加上更高级别的组件。子组件非常简单:只是模块和单个注入(inject)点的组合:@Singleton@Subcomponent(modules={NavigationDrawerModule.class,NavigationListModule.class,SwitcherModule.class})publicinterfaceNavigationDrawerComponent{NavigationDrawerFragmentinject(NavigationDr

Android NDK chrono epoch 不正确(std::chrono::high_resolution_clock)

下面的代码不打印epoch。typedefstd::chrono::high_resolution_clockClock;typedefstd::chrono::millisecondsMilliseconds;autores=std::chrono::duration_cast(Clock::now().time_since_epoch()).count();std::stringstreamss;ss>>>>>>>>>>TimeUtiles::getTimestamp%s",ss.str().c_str());我使用NDKr9d并且选择的NDK工具链版本是4.8!编辑:将std::

c++ - 与 std::chrono::system_clock/std::chrono::high_resolution_clock 的时差

考虑下面这段代码#include#include#includeintmain(){usingstd::chrono::system_clock;usingstd::chrono::milliseconds;usingstd::chrono::nanoseconds;usingstd::chrono::duration_cast;constautoduration=milliseconds(100);constautostart=system_clock::now();std::this_thread::sleep_for(duration);constautostop=system_

c++ - std::atomic<std::chrono::high_resolution_clock::time_point> 无法编译

我需要std::chrono::high_resolution_clock::time_point我想从一个线程写入并从另一个线程读取的字段。如果我声明它是我的代码编译没有任何错误。但为了让我的字段在另一个线程中可见,我用std::atomic将其包围像这样std::atomic现在我有以下编译错误:/usr/include/c++/4.8/atomic:167:7:error:function‘std::atomic::atomic()[with_Tp=std::chrono::time_point>>]’defaultedonitsfirstdeclarationwithanexc

c++ - ERROR : "dependent name is not a type". 当在类中使用 typedef 类型作为返回值时,带有模板

templateclassbag{public://TYPEDEFtypedefsize_tsize_type;typedefItemvalue_type;...}当我使用时templatebag::size_typebag::count(constItem&target)constVC++报错为Source.cpp(207):警告C4346:'bag::size_type':从属名称不是类型谁能告诉我为什么?谢谢! 最佳答案 应该是templatetypenamebag::size_typebag::count(constItem