I am new to android development. I am trying to start a "hello world"
project for an android app following the google android fundamentals course.
I believe i have the android plugin correctly installed. I keep getting the
error: Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.21
The code in my hello world app is:
buildscript {
ext.kotlin_version = '1.3.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
//classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"
classpath "org.jetbrains.kotlin:kotlin-stdlib:1.3.21"
//classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
If I'm already a user of IntelliJ IDEA, do I need to switch to Android Studio for Android development? No. Android Studio is focused specifically on Android development and provides streamlined environment and project setup, but otherwise all of its features are available in IntelliJ IDEA.
IntelliJ IDEA is one of the popular IDE that is used for developing android applications.
Android Studio is actually based on IntelliJ IDEA, but specializes in developing for the Android platform. In contrast, IntelliJ IDEA is a more generalist IDE that helps developers create code for any platform. Both are popular with businesses of all sizes, depending on the use case of the organization.
Android Studio Plugin Development Android Studio plugins extend or add functionality to the Android Studio IDE. Plugins can be written in Kotlin or Java, or a mix of both, and are created using IntelliJ IDEA and the IntelliJ Platform.
You need to replace jre
by jdk
as suggested by EpicPandaForce:
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With