kotlin

Renommer le répertoire" java " en "kotlin" dans Android Studio

Mon projet Android est écrit à 100% dans Kotlin et je voulais renommer le répertoire java en kotlin pour être cohérent. J'ai ... nommé "java" (si je passe à l'affichage de projet dans la liste déroulante, je vois "kotlin" tho). Qu'est-ce qui me manque?

Existe-t-il un moyen d'ouvrir une URL dans une fenêtre privée/Fenêtre Ingognito avec Java?

Je suis complètement nouveau dans le développement Java/Kotlin (j'essaie d'apprendre à la fois: les bases et la structure en ... TION_VIEW, uri) startActivity(intent) } Ça marche. Mais je veux que le lien s'ouvre dans une fenêtre ingognito.

Comment utiliser une classe Kotlin dans une classe java?

Je suis débutant dans la programmation Kotlin. Je développe une application Android, où j'utilise Java pour le développement. ... reur: impossible de trouver la classe de symbole MyPojo Je ne pouvais pas comprendre quel était le problème. Merci d'avance

Ne peut pas exécuter le programme "java" (dans le répertoire "/home/utilisateur/corda/build/nœuds/Notaire"): erreur=2, Aucun fichier ou répertoire

J'ai cloné le référentiel Cordapp-template-kotlin et installé les binaires token-sdk, mais quand j'exécute ./gradlew clean ... des/Notary"): erreur=2, Pas de tel fichier ou répertoire J'ai également vérifié le sdk Java, son ensemble au bon endroit.

Erreur: [kapt] java.lang.IllegalArgumentException: @androidx.chambre.ColumnInfo ne définit pas d'élément defaultValue()

Mon gradle contient ces dépendances implementation 'androidx.room:room-runtime:2.1.0' annotationProcessor 'androidx.room:ro ... (DatabaseProcessor.kt: 66) à androidx.chambre.processeur.DatabaseProcessor.processus (DatabaseProcessor.tk: 57) à

Rinominare la directory "java" in "kotlin" in Android Studio

Il mio progetto Android è scritto al 100% in Kotlin e volevo rinominare la directory java in kotlin per essere coerente. Ho ... ory è ancora chiamata "java" (se passo alla vista del progetto nel menu a discesa, vedo " kotlin" th). Cosa mi sto perdendo?

C'è un modo per aprire un URL nella finestra privata / Finestra Ingognito con Java?

Sono completamente nuovo nello sviluppo Java/Kotlin (cerco di imparare entrambi: basi e struttura in Java, quindi lo applico ... ACTION_VIEW, uri) startActivity(intent) } Funziona. Ma voglio che il link si apra in una finestra di ingognito.

Come usare una classe Kotlin in una classe java?

Sono un principiante nella programmazione di Kotlin. Sto sviluppando un'app Android, dove uso Java per lo sviluppo. Dopo che ... 35) errore: impossibile trovare la classe simbolo MyPojo Non sono riuscito a capire qual è il problema. Grazie in anticipo

Impossibile eseguire il programma "java" (nella directory "/ home / user / corda / build/nodes / Notary"): error = 2, Nessun file o directory di questo tipo

Ho clonato il repository Cordapp-template-kotlin e installato i binari token-sdk, ma quando eseguo ./gradlew clean deployNo ... uild/nodes / Notary"): error = 2, No such file or directory Ho anche controllato l'sdk Java, il suo set nel posto giusto.

Errore: [kapt] java.lang.IllegalArgumentException: @ androidx.camera.ColumnInfo non definisce un elemento defaultValue()

Il mio gradle contiene queste dipendenze implementation 'androidx.room:room-runtime:2.1.0' annotationProcessor 'androidx.roo ... ss (DatabaseProcessor.kt: 66) a androidx.camera.processore.DatabaseProcessor.processo (DatabaseProcessor.kt: 57) a

How are Java and Kotlin going for mobile app and game development?

I've read a bunch of topics on this subject, but there are other questions from me already. What are the advantages of kno ... rm in general can you create games on J. + K.? Is it possible to create 3D games in these languages separately or together?

How to handle RuntimeException correctly?

How to process RuntimeException correctly? For example, I have the following code: if (file.exists() || file.mkdirs()) { ... dirs()) { // запись в файл } //... } catch (e: SecurityException) { // обработка ошибки }

What are the advantages of Kotlin over Java for Android development for a programmer?

What are the advantages of Kotlin over Java for Android development for a programmer? I'm only superficially familiar with J ... decide in which language to start a new project for Android - not a very large application for the data collection terminal.

How to translate code from Java to Kotlin?

Please tell me, was there such a code in the Java project before private static Queries q; private static SQLiteDatabase db; ... tion(), and can I call it as before in Java classes with this method? q = App.getQueriesInstance(getApplicationContext());

Backend for an android application in Java?

Good afternoon, dear developers. I was faced with the task of choosing a way to implement the server part for an android appl ... ur opinion on this issue. Is it possible to implement the server in java with servlets, or will you have to write in Kotlin?

Java and Kotlin in one android project

There is a fairly large Android project, entirely written in Java. Right now I'm very interested in Kotlin, and I would like ... encountered in this case. For example, increased compilation time, there may be a hanging complexity of project support, etc.

Java covertation in Kotlin: why does the resulting code not work?

I'm studying Android development from the book "Head First. Programming for Android", while trying to translate all the examp ... id.internal.os.ZygoteInit.main(ZygoteInit.java:640)  at dalvik.system.NativeStart.main(Native Method) 

Translating code from Kotlin to Java

I have the code on Kotlin (Android Studio 3.5): Class RadioPlayerActivity : AppCompatActivity() { private lateinit var pla ... iew){ playWhenReady = false; } } In the first case, the stream is played back. In the Java code-silence. What's wrong?

How to reverse the use of generalization from java to kotlin?

There is a model on kotlin: import android.arch.lifecycle.ViewModel class TestModel<V : TestView> : ViewModel() { ... e is working. How do I convert TestActivity to kotlin? I also tried to use the built-in Android Studio converter, but failed.

Methods with " unresolved reference "(translated from java to kotlin)

When translating an application from Java to Kotlin, some Java methods are highlighted in red by Android Studio and explained ... methods - everything works now, but in the future it may lead to breakage? Or does it just affect the" beauty " of the code?