I will work on a small reusable test project/build, but in the meantime, do 
you have any suggestions (or places to look) for a way to make this work?

Because I think this would be a pretty straight-forward test to create and 
reproduce.

Charles

On Wednesday, May 28, 2014 10:24:20 PM UTC-4, Xavier Ducrohet wrote:
>
> The signing mechanism for Gradle is indeed different than the one in 
> ADT/Ant.
>
> It's using BouncyCastle instead of Sun-specific APIs that only existing in 
> the Sun JVM, allowing it to work on other JVMs.
>
> If you could come up with a small reusable test case this would be really 
> really good.
>
>
> On Tue, May 27, 2014 at 12:35 PM, Charles Anderson <
> [email protected] <javascript:>> wrote:
>
>> I have a project that we are currently converting to use Gradle. We have 
>> been using Eclipse to build the project, and are trying to move toward CI 
>> builds and integrated & automated testing.
>>
>> I have a Gradle script that builds the project just fine and I can 
>> install the APK onto my phone no problem. However, when I try to run the 
>> application I get a problem in the Gradle-built version, but not the 
>> Eclipse-built version:
>>
>> When I try and make a connection to my backend server, with our self 
>> signed certificate I get a
>>
>> java.security.cert.CertPathValidatorException
>>
>> that says
>>
>> Trust anchor for certification not found
>>
>> When building via Eclipse, the exact same code runs as expected; 
>> connecting just fine. I have double-checked that the assets folder is 
>> included properly in the Gradle build script, that the InputStream is 
>> loading the data correctly, and that it matches byte-for-byte the data that 
>> is read in when Eclipse builds the APK.
>>
>> After loading, I also verified that the KeyStore has the same aliases and 
>> certificates available in both builds. No exceptions are thrown during this 
>> initialization by either build.
>>
>> Using Gradle 1.10 building for Android SDK v.17
>>
>> For reference, I'm using ADT for Mac v.22.6.2v2014032112031-1085508
>>
>> -- 
>> 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.

Reply via email to