{"action":"opened","issue":{"url":"https://api.github.com/repos/vexdev/AndroidUnitTest/issues/1","labels_url":"https://api.github.com/repos/vexdev/AndroidUnitTest/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/vexdev/AndroidUnitTest/issues/1/comments","events_url":"https://api.github.com/repos/vexdev/AndroidUnitTest/issues/1/events","html_url":"https://github.com/vexdev/AndroidUnitTest/issues/1","id":75968235,"number":1,"title":" Multiple dex files define Lorg/hamcrest/Description;","user":{"login":"sereden","id":1812174,"avatar_url":"https://avatars.githubusercontent.com/u/1812174?v=3","gravatar_id":"","url":"https://api.github.com/users/sereden","html_url":"https://github.com/sereden","followers_url":"https://api.github.com/users/sereden/followers","following_url":"https://api.github.com/users/sereden/following{/other_user}","gists_url":"https://api.github.com/users/sereden/gists{/gist_id}","starred_url":"https://api.github.com/users/sereden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sereden/subscriptions","organizations_url":"https://api.github.com/users/sereden/orgs","repos_url":"https://api.github.com/users/sereden/repos","events_url":"https://api.github.com/users/sereden/events{/privacy}","received_events_url":"https://api.github.com/users/sereden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-13T12:28:41Z","updated_at":"2015-05-13T12:28:41Z","closed_at":null,"body":"I've spent a day to fix this problem in my project, but I see your project has it as well.\r\nSo, first of all **test** folder isn't been seen by IDE. I had to rename directory to **androidTest**.\r\n\r\nNext change ** testCompile ('com.google.dexmaker:dexmaker:1.2')** to     **androidTestCompile ('com.google.dexmaker:dexmaker:1.2')**\r\n\r\nBut I during building I receive an error\r\n**com.android.dex.DexException: Multiple dex files define Lorg/hamcrest/Description;**\r\n\r\nDo you any clue?\r\nAndroid Studio 1.2.1.1\r\nclasspath 'com.android.tools.build:gradle:1.2.3'\r\n\r\nMy version of build.gradle\r\n```\r\napply plugin: 'com.android.application'\r\n\r\nandroid {\r\n    compileSdkVersion 22\r\n    buildToolsVersion \"22.0.1\"\r\n\r\n    defaultConfig {\r\n        minSdkVersion 18\r\n    }\r\n}\r\n\r\nrepositories {\r\n    mavenCentral()\r\n}\r\n\r\ndependencies {\r\n    androidTestCompile ('junit:junit:4.12'){\r\n        exclude module: 'hamcrest-core'\r\n        exclude module: 'objenesis'\r\n    }\r\n    androidTestCompile 'org.mockito:mockito-core:2.0.5-beta'\r\n    androidTestCompile 'com.android.support:support-v4:22.1.1'\r\n    androidTestCompile ('org.powermock:powermock-api-mockito:1.6.2') {\r\n        exclude module: 'hamcrest-core'\r\n        exclude module: 'objenesis'\r\n    }\r\n    androidTestCompile ('org.powermock:powermock-module-junit4:1.6.2') {\r\n        exclude module: 'hamcrest-core'\r\n        exclude module: 'objenesis'\r\n    }\r\n}\r\n```"}}