e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:5:8 Unresolved reference: io
e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:7:21 Unresolved reference: FlutterActivity
e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:8:5 'onCreate' overrides nothing
e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:9:15 Unresolved reference: onCreate
e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:10:9 Unresolved reference: requestedOrientation
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileReleaseKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> 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 54s
Running Gradle task 'assembleRelease'... 55.8s
Gradle task assembleRelease failed with exit code 1
< /code>
"○а не секретная строка.package com.○○.○○
import android.content.pm.ActivityInfo
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
}
}
Я не могу скомпилировать файлы DART из -за ошибки ниже. < /p> [code]e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:5:8 Unresolved reference: io e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:7:21 Unresolved reference: FlutterActivity e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:8:5 'onCreate' overrides nothing e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:9:15 Unresolved reference: onCreate e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:10:9 Unresolved reference: requestedOrientation
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':app:compileReleaseKotlin'. > A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction > 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 54s Running Gradle task 'assembleRelease'... 55.8s Gradle task assembleRelease failed with exit code 1 < /code> "○а не секретная строка.package com.○○.○○
[/code] android/app/build.gradle [code]plugins { id "com.android.application" id "kotlin-android" // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id "dev.flutter.flutter-gradle-plugin" }
def localProperties = new Properties() def localPropertiesFile = rootProject.file("local.properties") if (localPropertiesFile.exists()) { localPropertiesFile.withReader("UTF-8") { reader -> localProperties.load(reader) } }
def keystoreProperties = new Properties() def keystorePropertiesFile = rootProject.file('key.properties') if (keystorePropertiesFile.exists()) { keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) }
defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId = "com.○○.○○" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdk = flutter.minSdkVersion minSdkVersion 21 targetSdk = flutter.targetSdkVersion versionCode = flutterVersionCode.toInteger() versionName = flutterVersionName }
plugins { id "com.android.application" version "1.7.21" apply false id "org.jetbrains.kotlin.android" version "1.8.0" apply false id "dev.flutter.flutter-plugin-loader" version "1.0.0" } }
include ":app"
< /code> gradle-wrapper.properties distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip [/code] Я попытался изменить версию Gradle, такую как 8.3, 8.1 и так далее.
Я не могу скомпилировать файлы dart из-за ошибки ниже.
e: file:///C:/Users/○○/○○/android/app/src /main/kotlin/com/example/ai_art/MainActivity.kt:5:8 Неразрешенная ссылка: io
e:...
Я не могу скомпилировать файлы dart из-за ошибки ниже.
e: file:///C:/Users/○○/○○/android/app/src/main/kotlin/com/example/ai_art/MainActivity.kt:5:8 Unresolved reference: io
e:...
I am receiving the set of error messages copied below when running flutter run on my project in Visual Studio Code.
Launching lib/main.dart on SM A127F in debug mode...
e:...
Я использую Native CLI React для разработки моего Native App React, и я установил модули Expo после Docs ( Инструкции по установке ручной .
Что я попробовал:
Инициировать новый нативный проект React и настроить Expo вручную, как я сказал. до...
Несколько дней назад я обновил react-родную версию 0,76,7, и я не могу создавать и запустить версию Android, когда iOS работает должным образом. Я всегда сталкиваюсь с этой ошибкой:
e:...