Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3. apply plugin: 'kotlin-android'
  4.  
  5. apply plugin: 'kotlin-android-extensions'
  6.  
  7. android {
  8. compileSdkVersion 28
  9. defaultConfig {
  10. applicationId "com.example.test1"
  11. minSdkVersion 23
  12. targetSdkVersion 28
  13. versionCode 1
  14. versionName "1.0"
  15. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  16.  
  17. dataBinding {
  18. enabled = true
  19. }
  20.  
  21. }
  22. buildTypes {
  23. release {
  24. minifyEnabled false
  25. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26. }
  27. }
  28. }
  29.  
  30. dependencies {
  31. implementation fileTree(dir: 'libs', include: ['*.jar'])
  32. implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  33. implementation 'com.android.support:appcompat-v7:28.0.0'
  34. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  35. testImplementation 'junit:junit:4.12'
  36. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  37. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  38. }
  39.  
  40. package com.example.test1
  41.  
  42. import android.support.v7.app.AppCompatActivity
  43. import android.os.Bundle
  44. import com.example.test1.databinding // <-- Shows ERROR in this line
  45.  
  46. class MainActivity : AppCompatActivity() {
  47.  
  48. override fun onCreate(savedInstanceState: Bundle?) {
  49. super.onCreate(savedInstanceState)
  50. setContentView(R.layout.activity_main)
  51. }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement