• 15
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I did not already have any problem with Dagger as far i don't add Realm in my project, after adding that on my project i expect i can build successful my project but i get this error now:

Can not resolve symbol DaggerApplicationComponent

i want to need Realm on my application and i can't remove that, but i dont get any other error on Logcat to know whats problem and i should be fix that and I'm not sure how can i resolve this problem

when i have this lines in build.gradle i dont have problem

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.novoda.bintray-release'

but after adding Realm i get

Configuration with name 'kapt' not found

error, and after adding kotlin-kapt to this file i get

Can not resolve symbol DaggerApplicationComponent

error, for example:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.jakewharton.hugo'
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'realm-android'