Hugh Rawlinson
Hugh Rawlinson

Reputation: 989

Gradle Android Build Project Error: Could not find meta-data resource

Brand new install of the Android SDK, and Android Studio. Brand new project, literally no changes to any file in the project. Working AVD, running 4.4.3 (or something similar). I get the following error:

Gradle 'Gigviz' project refresh failed. Error:Could not find meta-data resource 'META-INF/services/javax.xml.datatype.DatatypeFactory' for service 'javax.xml.datatype.DatatypeFactory'.

The best reason I can think of for this error is that I'm missing some component of the javax.xml.datatype.DatatypeFactory dependency. Has anyone encountered this error before?

I'm on OS X Yosemite, latest version of Android Studio.

Upvotes: 4

Views: 2206

Answers (2)

tdavis20050
tdavis20050

Reputation: 171

Found this on Gradle's forums, same error cause by a duplicate set of jars, inside the JDK's lib/endorsed folder. Usually when I get any build errors with META-INF in them, it is because a duplicate files somewhere. Also make sure you are using Java 1.7 or lower.

Upvotes: 0

user2320244
user2320244

Reputation:

  1. Download this : http://www.java2s.com/Code/Jar/j/Downloadjavaxxml134jar.htm

  2. Put it inside your JDK folder, in your program files. Something like this :

C:\Program Files\Java\jdk1.8.0_31\lib\missioncontrol\plugins

And see what happens.

Upvotes: 1

Related Questions