Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Given error when configuring Kotlin in Android Studio project.

I'm implementing Kotlin in my Android Studio project. When I finished downloading Kotlin, Android Studio asks if I could configure it into my project. However, when I do, I get this error:

Error:Cause: unable to find valid certification path to requested target

So yeah, I'm afraid to configure it into my project, or else this will happen. What I can tell you is that when I select 'configure Kotlin in project', I'm given 3 options on how I could configure it (not sure which one to choose):

  1. All modules.
  2. All modules containing Kotlin files: app.
  3. Single module.

...and the compiler and runtime version.

Keep in mind that this is a completely brand new project, so I have written zero code.

1 Answer

Hi Diego,

There's a few pointers in this post that might help. Another here. A quick Google of the problem message comes with a lot of suggestions to try.

Sorry not to be of specific help but the error is possibly implementation-dependent.

Steve.