Boy, I'm pulling out what's left of my hair. One of my Macs has the latest 
Android Studio installed with no trouble, and everything works as expected.

The other Mac has been nothing but frustration and exasperation.

It began with Studio not finding its SDK, and never actually having done 
anything to download or install it to the ~/Library/Android/sdk directory. 
This was silently noted as an error in the initial setup run, but not 
highlighted as a critical-stop issue, until of course I tried to actually 
*do* anything.

So I copied the working sdk contents from the Mac that had a functioning 
install. Success!

No.

Now, whenever I try to load an existing project, or download source sample 
files, or even do a clean build on anything, I keep getting whacked with a 
trail of errors that *always ends with this*:

*java.security.ProviderException: java.security.NoSuchAlgorithmException: 
SunTls12MasterSecret KeyGenerator not available*

A typical console dump on a clean or build is this:

*FAILURE: Build failed with an exception.*

** What went wrong:*
*A problem occurred configuring project ':app'.*
*> Could not resolve all dependencies for configuration 
':app:_debugUnitTestApkCopy'.*
*   > Could not resolve junit:junit:4.12.*
*     Required by:*
*         porting_test:app:unspecified*
*      > Could not resolve junit:junit:4.12.*
*         > Could not get resource 
'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.*
*            > Could not GET 
'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.*
*               > java.security.ProviderException: 
java.security.NoSuchAlgorithmException: SunTls12MasterSecret KeyGenerator 
not available*

Both machines are running OSX 10.12.2. Both machines are running the latest 
Android Studio. Both machines have Java installed.

In my Studio settings, I even tried checking the 'Force HTTP instead of 
HTTPS' option, and that didn't yield any positive results either.

I changed my HTTP settings from 'no proxy' (which is correct) to 
'auto-detect' (which, as you might guess, accomplished nothing).

Also, I can't seem to connect to the Android Repository (screenshot 
attached, with popup showing the error I keep seeing).

I don't have any idea where to go to solve this problem, and the fact that 
it's consistent would seem to indicate either a fault in a configuration 
file somewhere in Studio, or in the OSX install itself — but in neither 
case do I know where to look next.

Pointers and *useful* feedback would be appreciated. Thanks!


-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/e9b23f43-5a22-4555-b41c-ed1bb6782233%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to