You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I then created a new activity named WebViewActivity:
class WebViewActivity : Activity() {
@BindView(R.id.webView)
lateinit var webView: WebView
@InjectExtra
lateinit var url: String
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_web_view)
ButterKnife.bind(this)
Dart.inject(this)
webView.loadUrl(url)
}}</code>
Then I moved to my first activity and tried to call Henson.with(this). That did not work. Autocomplete would not suggest Henson and when I type it manually there is a compiler error.
I'm trying to figure out if I missed something or if there are compatibility issues with Kotlin.
The text was updated successfully, but these errors were encountered:
We are not aware of any incompatibility with kotlin. And helas, we actually don't use it yet.
There are a few things you can do to understand more the issue,
is it only an IDE issue but it's actually working on command line ?
Also, are files generated properly ?
what is the impact of lateinit when you declare your field ?
Hi, I'm using Android Studio 3.0.1 with Kotlin and I want to integrate Dart + Henson. To do this I started by adding the following to my grade file:
I then created a new activity named WebViewActivity:
class WebViewActivity : Activity() { @BindView(R.id.webView) lateinit var webView: WebView
Then I moved to my first activity and tried to call
Henson.with(this)
. That did not work. Autocomplete would not suggestHenson
and when I type it manually there is a compiler error.I'm trying to figure out if I missed something or if there are compatibility issues with Kotlin.
The text was updated successfully, but these errors were encountered: