android - Robolectric 3 support of Gradle splits -


i have in build.gradle android splits:

    splits {     abi {         enable true         reset()         include 'x86', 'mips', 'armeabi-v7a', 'armeabi'         universalapk false     } }   android.applicationvariants.all { variant ->     // assign different version code each output     variant.outputs.each { output ->         output.versioncodeoverride =                 versioncodes.get(output.getfilter(outputfile.abi), 0) * 1000000 + android.defaultconfig.versioncode     } } 

after update of robolectric 3.0 become path error:

build/intermediates/manifests/full/debug/androidmanifest.xml not found or not file; should point project's androidmanifest.xml 

because in build/intermediates/manifests/full/ have 4 splits folders

      armeabi/     armeabi-v7a/ mips/        x86/    

how can set in robolectric config or in gradle configuration, have splits?

thank you

update: in classes have following configuration:

@runwith(robolectricgradletestrunner.class) @config(sdk = 21, manifest = "../application/androidmanifest.xml", constants = buildconfig.class) 

i think easiest way point x86/androidmanifest.xml

you can specify using manifest key in @config, e.g.

@config(manifest="path-here") 

since need every test, might consider creating properties file. more details on this, docs here


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -