質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

Android Studio

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

Q&A

解決済

1回答

8278閲覧

ビルドエラーでrunできない

j06110611

総合スコア54

Flutter

Flutterは、iOSとAndroidのアプリを同じコードで開発するためのフレームワークです。オープンソースで開発言語はDart。双方のプラットフォームにおける高度な実行パフォーマンスと開発効率を提供することを目的としています。

Android Studio

Android Studioは、 Google社によって開発された、 Androidのネイティブアプリケーション開発に特化した統合開発ツールです。

0グッド

0クリップ

投稿2023/02/25 11:56

発生している問題・エラーメッセージ

Execution failed for task ':app:processDebugManifest'. > Unable to make field private final java.lang.String java.io.File.path accessible: module java.base does not "opens java.io" to unnamed module @2c37eea0

知りたいこと

行き詰まり状態なのでこれから何をしたらいいかだけでも教えていただきたいです。

試したこと

調べてみると、Manifest.xmlになにか問題があるっぽいですがどこが悪いのかわからないです。
ところどころ赤字にはなっていますが得られる情報はないです。

AndroidManifest.xml

xml

1<manifest xmlns:android="http://schemas.android.com/apk/res/android" 2 package="com.example.translation_diary"> 3 <application 4 android:label="translation_diary" 5 android:icon="@mipmap/ic_launcher"> 6 <activity 7 android:name=".MainActivity" 8 android:launchMode="singleTop" 9 android:theme="@style/LaunchTheme" 10 android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" 11 android:hardwareAccelerated="true" 12 android:windowSoftInputMode="adjustResize"> 13 <!-- Specifies an Android theme to apply to this Activity as soon as 14 the Android process has started. This theme is visible to the user 15 while the Flutter UI initializes. After that, this theme continues 16 to determine the Window background behind the Flutter UI. --> 17 <meta-data 18 android:name="io.flutter.embedding.android.NormalTheme" 19 android:resource="@style/NormalTheme" 20 /> 21 <!-- Displays an Android View that continues showing the launch screen 22 Drawable until Flutter paints its first frame, then this splash 23 screen fades out. A splash screen is useful to avoid any visual 24 gap between the end of Android's launch screen and the painting of 25 Flutter's first frame. --> 26 <meta-data 27 android:name="io.flutter.embedding.android.SplashScreenDrawable" 28 android:resource="@drawable/launch_background" 29 /> 30 <intent-filter> 31 <action android:name="android.intent.action.MAIN"/> 32 <category android:name="android.intent.category.LAUNCHER"/> 33 </intent-filter> 34 </activity> 35 <!-- Don't delete the meta-data below. 36 This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> 37 <meta-data 38 android:name="flutterEmbedding" 39 android:value="2" /> 40 </application> 41</manifest>

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

j06110611

2023/03/04 05:02

それでした!完全に自分の調べ不足でした。
guest

回答1

0

自己解決

jdkとgradleのバージョンが合ってなかっただけでした。

投稿2023/03/04 05:02

j06110611

総合スコア54

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問