Skip to content

The plug-in project does not have an Android directory #61405

@MuZiLee

Description

@MuZiLee

Steps to Reproduce

Either use commands or Packages created by Android Studio.There is no Android directory.
But there was no problem creating Project Flutter.
I tried to reinstall it but it still didn't work out.
Here is the error message when I created the plug-in.
image

Logs

$ flutter create --org com.abc --template=plugin hello
Creating project hello...
The plugin project was generated without specifying the `--platforms` flag, no new platforms are added.
To add platforms, run `flutter create -t plugin --platforms <platforms> .` under the same
directory. You can also find detailed instructions on how to add platforms in the `pubspec.yaml` at
https://flutter.dev/docs/development/packages-and-plugins/developing-packages#plugin-platforms.


  hello\.gitignore (created)
  hello\.idea\libraries\Dart_SDK.xml (created)
  hello\.idea\modules.xml (created)
  hello\.idea\runConfigurations\example_lib_main_dart.xml (created)
  hello\.idea\workspace.xml (created)
  hello\.metadata (created)
  hello\CHANGELOG.md (created)
  hello\ios\Classes\HelloPlugin.h (created)
  hello\ios\Classes\HelloPlugin.m (created)
  hello\ios\Classes\SwiftHelloPlugin.swift (created)
  hello\ios\hello.podspec (created)
  hello\ios\.gitignore (created)
  hello\ios\Assets\.gitkeep (created)
  hello\lib\hello.dart (created)
  hello\LICENSE (created)
  hello\hello.iml (created)
  hello\pubspec.yaml (created)
  hello\README.md (created)
  hello\test\hello_test.dart (created)
Running "flutter pub get" in hello...                               0.7s
  hello\example\.gitignore (created)
  hello\example\.idea\libraries\Dart_SDK.xml (created)
  hello\example\.idea\libraries\KotlinJavaRuntime.xml (created)
  hello\example\.idea\modules.xml (created)
  hello\example\.idea\runConfigurations\main_dart.xml (created)
  hello\example\.idea\workspace.xml (created)
  hello\example\.metadata (created)
  hello\example\ios\Runner\AppDelegate.swift (created)
  hello\example\ios\Runner\Runner-Bridging-Header.h (created)
  hello\example\ios\Runner.xcodeproj\project.pbxproj (created)
  hello\example\ios\Runner.xcodeproj\xcshareddata\xcschemes\Runner.xcscheme (created)
  hello\example\ios\.gitignore (created)
  hello\example\ios\Flutter\AppFrameworkInfo.plist (created)
  hello\example\ios\Flutter\Debug.xcconfig (created)
  hello\example\ios\Flutter\Release.xcconfig (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\Contents.json (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\AppIcon.appiconset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\LaunchImage.imageset\Contents.json (created)
  hello\example\ios\Runner\Assets.xcassets\LaunchImage.imageset\LaunchImage.png (created)
  hello\example\ios\Runner\Assets.xcassets\LaunchImage.imageset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\LaunchImage.imageset\[email protected] (created)
  hello\example\ios\Runner\Assets.xcassets\LaunchImage.imageset\README.md (created)
  hello\example\ios\Runner\Base.lproj\LaunchScreen.storyboard (created)
  hello\example\ios\Runner\Base.lproj\Main.storyboard (created)
  hello\example\ios\Runner\Info.plist (created)
  hello\example\ios\Runner.xcodeproj\project.xcworkspace\contents.xcworkspacedata (created)
  hello\example\ios\Runner.xcodeproj\project.xcworkspace\xcshareddata\IDEWorkspaceChecks.plist (created)
  hello\example\ios\Runner.xcodeproj\project.xcworkspace\xcshareddata\WorkspaceSettings.xcsettings (created)
  hello\example\ios\Runner.xcworkspace\contents.xcworkspacedata (created)
  hello\example\ios\Runner.xcworkspace\xcshareddata\IDEWorkspaceChecks.plist (created)
  hello\example\ios\Runner.xcworkspace\xcshareddata\WorkspaceSettings.xcsettings (created)
  hello\example\lib\main.dart (created)
  hello\example\hello_example.iml (created)
  hello\example\pubspec.yaml (created)
  hello\example\README.md (created)
  hello\example\test\widget_test.dart (created)
Running "flutter pub get" in example...                             0.5s
Wrote 69 files.

All done!
[√] Flutter: is fully installed. (Channel master, 1.20.0-8.0.pre.57, on Microsoft Windows [Version 10.0.18362.900],
    locale zh-CN)
[√] Android toolchain - develop for Android devices: is fully installed. (Android SDK version 30.0.1)
[√] Android Studio: is fully installed. (version 4.0)
[!] Connected device: is not available.

Run "flutter doctor" for information about installing additional components.

In order to run your application, type:

  $ cd hello\example
  $ flutter run

Your application code is in hello\example\lib\main.dart.

Your plugin code is in hello\lib\hello.dart.

Host platform code is in the  directories under hello.
To edit platform code in an IDE see https://flutter.dev/developing-packages/#edit-plugin-package.
$ flutter doctor -v
[√] Flutter (Channel master, 1.20.0-8.0.pre.57, on Microsoft Windows [Version 10.0.18362.900], locale zh-CN)
    • Flutter version 1.20.0-8.0.pre.57 at D:\flutter
    • Framework revision 8bd2e6585b (2 days ago), 2020-07-11 12:15:19 -0700
    • Engine revision 9b3e3410f0
    • Dart version 2.9.0 (build 2.9.0-21.0.dev 06cb010247)
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\Administrator\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    found in release: 1.20Found to occur in 1.20has reproducible stepsThe issue has been confirmed reproducible and is ready to work onplatform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions