Когда я импортирую эту реализацию библиотеки 'com.android.volley: volley: 1.0.0'.Я теряю связи из деятельности и просмотров - PullRequest
0 голосов
/ 28 октября 2018

Когда я помещаю эту библиотечную реализацию com.android.volley: volley: 1.0.0 в свой файл Grandle, я не могу связать свои переменные с моими представлениями с помощью метода findViewById.Вот мой файл Grandle:

apply plugin: 'com.android.application'

    android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.dimosthenis.seetheworld"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner 
"android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 
'proguard-rules.pro'
        }
    }
}

    //google told me to write this
    repositories {
    mavenCentral()
}

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0-rc02'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso- 
core:3.0.2'
    implementation 'com.loopj.android:android-async-http:1.4.9'
    implementation 'com.google.api-client:google-api-client:1.23.0'
    //implementation 'com.android.volley:volley:1.0.0'
    //compile 'com.google.api-client:google-api-client:1.23.0'
}

Когда библиотека залпа находится в комментарии, файл ниже работает отлично.В противном случае findViewById не может найти идентификаторы моих просмотров.Собственно, после "Р."идентификатор исчез.

EditText loginEmail = (EditText) findViewById(R.id.email_login);
EditText loginPassword = (EditText) findViewById(R.id.password_login);
...