Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flutter create -a kotlin <project> still generate java code #23212

Closed
leagmain opened this issue Oct 17, 2018 · 3 comments
Closed

flutter create -a kotlin <project> still generate java code #23212

leagmain opened this issue Oct 17, 2018 · 3 comments
Labels
tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@leagmain
Copy link

leagmain commented Oct 17, 2018

Steps to Reproduce

flutter version

Flutter 0.10.0 • channel dev • https://github.com/flutter/flutter.git
Framework • revision d954ae6850 (8 days ago) • 2018-10-09 16:21:06 -0400
Engine • revision bf377896ff
Tools • Dart 2.1.0-dev.6.0.flutter-a50dfd6698

issue command

flutter create -i swift -a kotlin projectA

the projectA contains Java version of Android code and ObjC version of iOS code.

Logs

image
image

flutter doctor -v

[√] Flutter (Channel dev, v0.10.0, on Microsoft Windows [Version 10.0.17134.345], locale en-US)
    • Flutter version 0.10.0 at C:\Users\leagm\Applications\flutter
    • Framework revision d954ae6850 (8 days ago), 2018-10-09 16:21:06 -0400
    • Engine revision bf377896ff
    • Dart version 2.1.0-dev.6.0.flutter-a50dfd6698

[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\leagm\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    X Android license status unknown.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 29.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] VS Code (version 1.28.1)
    • VS Code at C:\Users\leagm\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.19.0

[√] VS Code, 64-bit edition (version 1.28.1)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 2.19.0

[√] Connected device (1 available)
    • MIX 2 • 192.168.0.101:5555 • android-arm64 • Android 8.0.0 (API 26)

! Doctor found issues in 1 category.
@zoechi zoechi added the tool Affects the "flutter" command-line tool. See also t: labels. label Oct 17, 2018
@zoechi zoechi added this to the Goals milestone Oct 17, 2018
@maks
Copy link

maks commented Mar 26, 2019

I think this has been fixed and can be closed, using current stable Flutter v1.2.1 (on Linux) running flutter create -a kotlin projk produces:
projk/android/app/src/main/kotlin/com/example/projk/MainActivity.kt (created)
as expected.

@jmagman jmagman added this to Awaiting triage in Tools - flutter create review Jan 10, 2020
@jmagman
Copy link
Member

jmagman commented Feb 8, 2020

The GeneratedPluginRegistrant files are still in java and Objective-C but that's by design.

Are you still seeing this in a recent Flutter build?

@jmagman jmagman moved this from Awaiting triage to Engineer reviewed in Tools - flutter create review Feb 8, 2020
@jmagman jmagman added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 8, 2020
@pedromassangocode pedromassangocode removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 12, 2021
@github-actions
Copy link

github-actions bot commented Aug 4, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
Tools - flutter create review
  
Engineer reviewed
Development

No branches or pull requests

5 participants