Yeap, that was the issue. Thanks very much for help. It didn't occure to me
that those two could be connected. I am still experimenting with test
coverage support.
On Friday, 21 November 2014 00:11:27 UTC+1, Xavier Ducrohet wrote:
>
> I was just looking at the code in DefaultBuildType:
>
> @Override
> public boolean isDebuggable() {
> // Accessing coverage data requires a debuggable package.
> return mDebuggable || mTestCoverageEnabled;
> }
>
>
> This is your problem. Why is your release type enabling
> testCoverageEnabled?
>
> We can argue about whether the above code is right, but test coverage
> should really not be enabled on a release app.
>
> On Wed, Nov 19, 2014 at 12:54 AM, Martin Rajniak <[email protected]
> <javascript:>> wrote:
>
>> Yes I have tried several times - the output apk are even names
>> xxx-release.apk. In message window I can clearly see that
>> assembleXXXRelease has been called on wrapper. I have even tried clearing
>> the project, changing variants but only thing that helps is reverting to
>> 0.14.1.
>>
>> On Wednesday, 19 November 2014 00:31:15 UTC+1, Xavier Ducrohet wrote:
>>>
>>> Are you sure you selected the release variant when you did your export?
>>>
>>> On Tue, Nov 18, 2014 at 1:25 PM, Martin Rajniak <[email protected]>
>>> wrote:
>>>
>>>> Hey,
>>>> I have an issue when I try to update from Android Gradle Plugin 0.14.1
>>>> to 0.14.2. When I try to publish APK generated from Android Studio(after
>>>> update), I get rejected with message that I am trying to upload
>>>> "debuggable
>>>> APK". Variant selected both when working in Android Studio and also when
>>>> trying to generate APK is "Release". I have no issue when using old 0.14.1
>>>> version.
>>>>
>>>> Setup:
>>>> =====================
>>>> Windows 8.1, 64-bit
>>>> Android Studio 0.9.2
>>>> Gradle 2.1
>>>> Android Gradle Plugin 0.14.2
>>>>
>>>> This is snippet from the main app gradle build file:
>>>>
>>>> buildTypes {
>>>> debug {
>>>> testCoverageEnabled true
>>>> }
>>>> release {
>>>> zipAlignEnabled true
>>>> minifyEnabled true
>>>> shrinkResources true
>>>> proguardFiles getDefaultProguardFile('proguard-android.txt'),
>>>> 'proguard-rules.pro'
>>>> signingConfig signingConfigs.release
>>>> testCoverageEnabled true
>>>> }
>>>> }
>>>>
>>>> Thanks for any help or advise.
>>>>
>>>> Best,
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "adt-dev" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Xavier Ducrohet
>>> Android SDK Tech Lead
>>> Google Inc.
>>> http://developer.android.com | http://tools.android.com
>>>
>>> Please do not send me questions directly. Thanks!
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "adt-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Xavier Ducrohet
> Android SDK Tech Lead
> Google Inc.
> http://developer.android.com | http://tools.android.com
>
> Please do not send me questions directly. Thanks!
>
--
You received this message because you are subscribed to the Google Groups
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.