kotlin

kotlin + gradle+ intellij - no repositories are defined

半腔热情 提交于 2021-02-08 14:59:53
问题 anyone can help me out please? i got just project source code and dockefile from ex-colleague without explanation of work but i got in trouble now with time limitation. please please please. i got this error message below Could not determine the dependencies of task ':compileKotlin'. Could not resolve all files for configuration ':kotlinCompilerClasspath'. Cannot resolve external dependency org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.41 because no repositories are defined. that's my

Sticky overlay without WindowManager.LayoutParams.TYPE_PHONE

与世无争的帅哥 提交于 2021-02-08 13:15:05
问题 By sticky I mean a window that doesn't get closed by calling the launcher intent ( intent.addCategory(Intent.CATEGORY_HOME ). Previously this was done with WindowManager.LayoutParams.TYPE_PHONE , but this type is now deprecated and throws an exception on api 28: WindowManager$BadTokenException ... permission denied for window type 2002 The behavious is still possible since Facebook's Messenger does it with its chat "Heads", based on the assumption that facebook doesn't get system app

Sticky overlay without WindowManager.LayoutParams.TYPE_PHONE

╄→尐↘猪︶ㄣ 提交于 2021-02-08 13:14:36
问题 By sticky I mean a window that doesn't get closed by calling the launcher intent ( intent.addCategory(Intent.CATEGORY_HOME ). Previously this was done with WindowManager.LayoutParams.TYPE_PHONE , but this type is now deprecated and throws an exception on api 28: WindowManager$BadTokenException ... permission denied for window type 2002 The behavious is still possible since Facebook's Messenger does it with its chat "Heads", based on the assumption that facebook doesn't get system app

Sticky overlay without WindowManager.LayoutParams.TYPE_PHONE

笑着哭i 提交于 2021-02-08 13:13:49
问题 By sticky I mean a window that doesn't get closed by calling the launcher intent ( intent.addCategory(Intent.CATEGORY_HOME ). Previously this was done with WindowManager.LayoutParams.TYPE_PHONE , but this type is now deprecated and throws an exception on api 28: WindowManager$BadTokenException ... permission denied for window type 2002 The behavious is still possible since Facebook's Messenger does it with its chat "Heads", based on the assumption that facebook doesn't get system app

Issue with CORS and error and Access-Control-Allow-Origin header

社会主义新天地 提交于 2021-02-08 12:38:09
问题 Hi I cant disable CORS in my project. I use a custom filter and Spring Security Config for the CORS configuration. I have seen this excellent answer: Can you completely disable CORS support in Spring? but when I have tried the below implementation I still get the CORS error: CORS configuration: @Component @Order(Ordered.HIGHEST_PRECEDENCE) class CorsFilter @Autowired constructor() : CorsFilter(configSrc()) { companion object { private fun configSrc(): UrlBasedCorsConfigurationSource { val

IntelliJ IDEA Gradle project not recognizing/locating Antlr generated sources

﹥>﹥吖頭↗ 提交于 2021-02-08 12:21:46
问题 I'm using Antlr in a simple Kotlin/Gradle project, and while my Gradle build is generating Antlr sources, they are not available for importing into the project. As you can see (on the left), the classes (Lexer/Parser, etc.) are being generated. I have also configured this generated-src/antlr/main directory as a Source Root . Most questions I see list this as a solution, but I've already done it. The issue persists after multiple rebuilds (both in IDEA and on the CLI), and following all the

FirebaseAuth: getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@9cd3393

ぐ巨炮叔叔 提交于 2021-02-08 11:01:33
问题 Online it says to downgrade the dependencies for Firebase Auth but I have done that and it does not work. 回答1: You should ensure that all your firebase dependencies are using the same version . I was also facing the same issue, using stable version 15.0.0 worked well for my case. 回答2: Check that your google-services is updated, in build.gradle.project classpath 'com.google.gms:google-services:4.0.1' and try changing your Auth to: implementation 'com.google.firebase:firebase-auth:16.0.1'

Is there a way to call Python script inside of a Kotlin project?

爱⌒轻易说出口 提交于 2021-02-08 10:58:27
问题 I have been programming a Python desktop app in Python 3.7 with tkinter. Many of my friends have said using it as an mobile application will get more users. I have been working with sklearn and different modules in Python to run along side the GUI. Is it possible to call that script in Kotlin? 回答1: Yes it is possible. Python has REPL, it's own interactive interpreter and as it turns out Kotlin has a REPL as well. You'll still have to do research and find the interfaces to use with your front

FirebaseAuth: getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@9cd3393

无人久伴 提交于 2021-02-08 10:57:17
问题 Online it says to downgrade the dependencies for Firebase Auth but I have done that and it does not work. 回答1: You should ensure that all your firebase dependencies are using the same version . I was also facing the same issue, using stable version 15.0.0 worked well for my case. 回答2: Check that your google-services is updated, in build.gradle.project classpath 'com.google.gms:google-services:4.0.1' and try changing your Auth to: implementation 'com.google.firebase:firebase-auth:16.0.1'

Is there a way to call Python script inside of a Kotlin project?

≯℡__Kan透↙ 提交于 2021-02-08 10:56:38
问题 I have been programming a Python desktop app in Python 3.7 with tkinter. Many of my friends have said using it as an mobile application will get more users. I have been working with sklearn and different modules in Python to run along side the GUI. Is it possible to call that script in Kotlin? 回答1: Yes it is possible. Python has REPL, it's own interactive interpreter and as it turns out Kotlin has a REPL as well. You'll still have to do research and find the interfaces to use with your front