Open GoogleCodeExporter opened 9 years ago
Yep, the setup instructions as is are wrong. Getting the same error.
Original comment by engappsm...@gmail.com
on 25 Jan 2015 at 8:07
[deleted comment]
The issue here is that the jar is getting written twice in one of these files:
'META-INF/DEPENDENCIES.txt'
'META-INF/LICENSE.txt'
'META-INF/NOTICE.txt'
'META-INF/NOTICE'
'META-INF/LICENSE'
'META-INF/DEPENDENCIES'
'META-INF/notice.txt'
'META-INF/license.txt'
'META-INF/dependencies.txt'
'META-INF/LGPL2.1'
'LICENSE.txt'
In order to avoid this add the following code you your app module's
build.gradle inside the android{}:
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
exclude 'LICENSE.txt'
}
Also, the guide is missing a call to matches() here:
onView(withText("Hello world!")).check(matches(isDisplayed()));.
If you are running these tests right out of the new project template from Android Studio please note that the default string text for the TextView is "Hello world!" (note the "!"), and the sample test is looking for a View with "Hello world" (no "!")
Original comment by emmanuel...@gmail.com
on 9 Mar 2015 at 6:06
Original comment by vale...@google.com
on 16 Mar 2015 at 7:42
Original issue reported on code.google.com by
m...@niskala.org
on 17 Jan 2015 at 9:53