dependencies

The Jar of this class file belongs to container 'Android Dependencies' which does not allow modifications to source attachments on its entries

馋奶兔 提交于 2019-12-17 15:25:12
问题 I am making an email application which is giving the error in this question's title. How can I fix this problem? I am giving my codes screenshot if it is helps to find solution. 回答1: Seems to be something they intentionally broke in ADT r17. See http://code.google.com/p/android/issues/detail?id=27490#c6. 回答2: There is an official solution to this: Allow src/doc attachement for 3rd party jars in libs/ Since those jars are added dynamically through a classpath container, the devs cannot set the

Change the com.sun.org.apache.xml.internal.serialize.XMLSerializer & com.sun.org.apache.xml.internal.serialize.OutputFormat

♀尐吖头ヾ 提交于 2019-12-17 14:47:21
问题 Using com.sun.org.apache.xml.internal.serialize.XMLSerializer and com.sun.org.apache.xml.internal.serialize.OutputFormat causes some errors when compiling using java 1.6. The solution I found is by using org.apache.xml.serialize.XMLSerializer and org.apache.xml.serialize.OutputFormat after adding xerces. The problem is that theses classes are deprecated. What can I use without to replace them without touching the code ? Thnx This is the dependency I used : <dependency> <groupId>xerces<

How to determine which classes are used by a Java program?

一曲冷凌霜 提交于 2019-12-17 14:13:38
问题 Is there any tool that lists which and when some classes are effectively used by an app or, even-better, automatically trims JAR libraries to only provide classes that are both referenced and used? 回答1: Bear in mind that, as proven by the halting problem, you can't definitely say that a particular class is or isn't used. At least on any moderately complex application. That's because classes aren't just bound at compile-time but can be loaded: based on XML config (eg Spring); loaded from

Order of static constructors/initializers in C#

我怕爱的太早我们不能终老 提交于 2019-12-17 12:14:10
问题 While working on a C# app I just noticed that in several places static initializers have dependencies on each other like this: static private List<int> a = new List<int>() { 0 }; static private List<int> b = new List<int>() { a[0] }; Without doing anything special that worked. Is that just luck? Does C# have rules to resolve this? Edit: (re: Panos) In a file lexical order seems to be king? what about across files? In looking I tried a cyclical dependency like this: static private List<int> a

Gradle: how to display where a dependency conflict arises

六月ゝ 毕业季﹏ 提交于 2019-12-17 11:21:39
问题 I have a Gradle project with many dependencies, one of which is resolved as follows: gradle dependencyInsight --configuration compile --dependency javax.activation :dependencyInsight javax.activation:activation:1.1 (conflict resolution) +--- com.sun.mail:mailapi:1.4.4 | \--- compile \--- com.sun.mail:smtp:1.4.4 \--- compile javax.activation:activation:1.0.2 -> 1.1 \--- compile Version 1.1 must be a transitive dependency because I explicitly specified 1.0.2. How can I find out where this

What does '->' (arrow) mean in gradle's dependency graph?

落爺英雄遲暮 提交于 2019-12-17 08:48:30
问题 I'm trying to run some Android tests, however, the compiler complains that multiple dex files exist. Multiple dex files define Lorg/hamcrest/MatcherAssert; So I'm trying to filter duplicated dependencies: $ ./gradlew -q dependencies app:dependencies --configuration androidTestCompile However I get the following output: ------------------------------------------------------------ Project :app ------------------------------------------------------------ androidTestCompile - Classpath for

What does '->' (arrow) mean in gradle's dependency graph?

跟風遠走 提交于 2019-12-17 08:47:04
问题 I'm trying to run some Android tests, however, the compiler complains that multiple dex files exist. Multiple dex files define Lorg/hamcrest/MatcherAssert; So I'm trying to filter duplicated dependencies: $ ./gradlew -q dependencies app:dependencies --configuration androidTestCompile However I get the following output: ------------------------------------------------------------ Project :app ------------------------------------------------------------ androidTestCompile - Classpath for

How to exclude dependency in a Maven plugin?

眉间皱痕 提交于 2019-12-17 07:25:36
问题 I have a project that needs the following Maven jibx plugin: <build> <plugins> <plugin> <groupId>org.jibx</groupId> <artifactId>maven-jibx-plugin</artifactId> <version>1.2.2</version> ... </plugin> </plugins> </build> Inside the jibx plugin pom, there is a xpp3 dependency which I want to exclude from my project build process (due to some reason I cannot have it inside my private repository). Is there a way to config my pom.xml (not the plugin pom) to exclude that dependency? EDIT : I tried to

No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')

前提是你 提交于 2019-12-17 07:25:31
问题 Can anybody help why I am getting an error in the following? Error:(7, 41) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius'). apply plugin: 'com.android.application' //Add these lines def Base_URL = '"' + WEBServiceBaseURL + '"' ?: '"Define BASE URL"'; def SMS_Base_URL = '"' + WEBServiceBaseSMSURL + '"' ?: '"Define SMS BASE URL"'; android.buildTypes.each { type -> type.buildConfigField 'String', 'Base_URL', WEBServiceBaseURL

No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius')

好久不见. 提交于 2019-12-17 07:25:04
问题 Can anybody help why I am getting an error in the following? Error:(7, 41) No resource found that matches the given name (at 'dialogCornerRadius' with value '?android:attr/dialogCornerRadius'). apply plugin: 'com.android.application' //Add these lines def Base_URL = '"' + WEBServiceBaseURL + '"' ?: '"Define BASE URL"'; def SMS_Base_URL = '"' + WEBServiceBaseSMSURL + '"' ?: '"Define SMS BASE URL"'; android.buildTypes.each { type -> type.buildConfigField 'String', 'Base_URL', WEBServiceBaseURL