aoriani
02/07/2018, 7:37 PMdgngulcan
02/07/2018, 7:37 PMaar
and compile it to a project that kotlin is not added to and having the exception
Caused by: java.lang.ClassNotFoundException: Didn't find class "kotlin.jvm.internal.Lambda"
What could be the problem?bill1550
02/07/2018, 8:13 PMAbhi
02/07/2018, 10:04 PMpublic static void showDialog(@NonNull FragmentActivity activity)
and I call it within a fragment using kotlin as Util.showDialog(fragment.activity)
. The compiler complains that Expected: FragmentActivity, Found: FragmentActivity?
Knowing that the activity will not be null when I call the method (i:e I call it right after onActivityCreated()
), which of the following would be a good way to handle the error:
- casting: fragment.activity as FragmentActivity
- non null assertion: fragment.activity!!
- let/if
blocks (but this will hide the exception and hurt me in the long run)mathew
02/08/2018, 6:48 AMModou
02/08/2018, 12:43 PMGreg Stepniewski
02/08/2018, 1:12 PMwithoutclass
02/08/2018, 2:52 PMjuan.hurtado
02/08/2018, 3:59 PMError:(67, 25) Unresolved reference: context
while using kotlin and databinding ?Mags
02/08/2018, 8:24 PMbloder
02/08/2018, 10:47 PMYMobile
02/09/2018, 8:40 AMYMobile
02/09/2018, 4:36 PMJoe
02/09/2018, 7:10 PMsetProcessDefaultNetwork(...)
is missing. Am I missing an SDK or something? I’m thinking this may be a Kotlin issue, but I’m not sure.
if (isEnabled && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
connectivityManager.bindProcessToNetwork(network)
} else {
connectivityManager.setProcessDefaultNetwork(network)
}
dave08
02/11/2018, 5:08 PMStarted running tests
Test running failed: Instrumentation run failed due to 'java.lang.IllegalAccessError'
Empty test suite.
in espresso tests?
Maybe I have something wrong here?
@RunWith(AndroidJUnit4::class)
class NewWazeTest {
@get:Rule
val rule = ActivityTestRule<FirstLoginActivity>(FirstLoginActivity::class.java)
@get:Rule
val intentsTestRule = IntentsTestRule<CheckServerActivity>(CheckServerActivity::class.java)
Kylych
02/11/2018, 5:10 PMPascal How
02/11/2018, 11:14 PMPascal How
02/11/2018, 11:53 PMjw
02/12/2018, 2:20 PMJeremy Rempel
02/12/2018, 2:23 PMdknapp
02/12/2018, 2:39 PMviliusk
02/12/2018, 2:49 PMkotlin-android-extensions
, how do you name view IDs lowercase_underscored
or camelCased
?jw
02/12/2018, 2:57 PMDaniel
02/12/2018, 9:53 PMkatz
02/13/2018, 8:51 AMbennofs
02/13/2018, 11:00 PMwith(AnkoContext.create(parent.context)) { ...layout... }
but that doesn't allow me to set layout params for examplemaplonki
02/14/2018, 1:23 AMkirillrakhman
02/14/2018, 3:12 PMdave08
02/14/2018, 6:17 PMTest running failed: Instrumentation run failed due to 'java.lang.IllegalAccessError'. Empty test suite.
running espresso tests w/ Multidex on... anybody encountered this...?withoutclass
02/14/2018, 8:04 PMwithoutclass
02/14/2018, 8:04 PMsindrenm
02/15/2018, 8:27 AM