You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Android] domain name containing keywords like "is" should be written as 'is'.example.appName #97902
When I create a standart android project with kotlin language if I enter a domain name containing keywords like is in the creation of project the package name is written as `is`.example.appName. But when I create a flutter project it is written as is.example.appName. which causes an error because of syntax of kotlin language.
changed the title [-]a domain name containing keywords like "is" should be written as `is`.example.appName[/-][+]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/+]on Feb 6, 2022
changed the title [-]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/-][+]a domain name containing keywords like "is" should be written as \` is \`.example.appName[/+]on Feb 6, 2022
changed the title [-]a domain name containing keywords like "is" should be written as \` is \`.example.appName[/-][+]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/+]on Feb 6, 2022
changed the title [-]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/-][+]a domain name containing keywords like "is" should be written as 'is'.example.appName[/+]on Feb 6, 2022
changed the title [-]a domain name containing keywords like "is" should be written as 'is'.example.appName[/-][+]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/+]on Feb 6, 2022
changed the title [-]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/-][+]a domain name containing keywords like "is" should be written as `\`is\`.example.appName`[/+]on Feb 6, 2022
changed the title [-]a domain name containing keywords like "is" should be written as `\`is\`.example.appName`[/-][+]a domain name containing keywords like "is" should be written as 'is'.example.appName[/+]on Feb 6, 2022
changed the title [-]a domain name containing keywords like "is" should be written as 'is'.example.appName[/-][+][Android] domain name containing keywords like "is" should be written as 'is'.example.appName[/+]on Feb 7, 2022
Hi @Rza-Ismayil, Thanks for filing the issue. I can reproduce the issue the app fails to build when the package name is
Steps to Reproduce
flutter create myapp --org is.example.myapp
flutter run
logs
Launching lib/main.dart on Redmi K20 Pro in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
e: /Users/mahesh/Desktop/myapp/android/app/src/main/kotlin/is/example/myapp/myapp/MainActivity.kt: (1, 9): Package name must be a '.'-separated identifier list
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 14s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
flutter doctor -v
[✓] Flutter (Channel stable, 2.10.0, on macOS 12.1 21C52 darwin-arm, locale en-GB)
• Flutter version 2.10.0 at /Users/mahesh/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5f105a6ca7 (6 days ago), 2022-02-01 14:15:42 -0800
• Engine revision 776efd2034
• Dart version 2.16.0
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/mahesh/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_HOME = /Users/mahesh/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 60.1.4
• Dart plugin version 212.5080.8
[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.34.0
[✓] Connected device (3 available)
• Redmi K20 Pro (mobile) • 192.168.1.3:5555 • android-arm64 • Android 11 (API 30)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.1 21C52 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.80
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
[✓] Flutter (Channel master, 2.11.0-0.0.pre.452, on macOS 12.1 21C52 darwin-arm, locale en-GB)
• Flutter version 2.11.0-0.0.pre.452 at /Users/mahesh/Documents/flutter_master
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ba01ec8faa (32 hours ago), 2022-02-05 22:05:18 -0500
• Engine revision 0712096899
• Dart version 2.17.0 (build 2.17.0-85.0.dev)
• DevTools version 2.10.0
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/mahesh/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_HOME = /Users/mahesh/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 60.1.4
• Dart plugin version 212.5080.8
[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.34.0
[✓] Connected device (3 available)
• Redmi K20 Pro (mobile) • 192.168.1.3:5555 • android-arm64 • Android 11 (API 30)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.1 21C52 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 98.0.4758.80
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Labeling this issue for further insights from the time.
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.
Activity
[-]a domain name containing keywords like "is" should be written as `is`.example.appName[/-][+]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/+][-]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/-][+]a domain name containing keywords like "is" should be written as \` is \`.example.appName[/+][-]a domain name containing keywords like "is" should be written as \` is \`.example.appName[/-][+]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/+][-]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/-][+]a domain name containing keywords like "is" should be written as 'is'.example.appName[/+][-]a domain name containing keywords like "is" should be written as 'is'.example.appName[/-][+]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/+][-]a domain name containing keywords like "is" should be written as \`is\`.example.appName[/-][+]a domain name containing keywords like "is" should be written as `\`is\`.example.appName`[/+][-]a domain name containing keywords like "is" should be written as `\`is\`.example.appName`[/-][+]a domain name containing keywords like "is" should be written as 'is'.example.appName[/+][-]a domain name containing keywords like "is" should be written as 'is'.example.appName[/-][+][Android] domain name containing keywords like "is" should be written as 'is'.example.appName[/+]maheshj01 commentedon Feb 7, 2022
Hi @Rza-Ismayil, Thanks for filing the issue. I can reproduce the issue the app fails to build when the package name is
Steps to Reproduce
flutter create myapp --org is.example.myappflutter runlogs
flutter doctor -v
Labeling this issue for further insights from the time.
github-actions commentedon Mar 4, 2023
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 -vand a minimal reproduction of the issue.