HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2022
0416
す²hsp3dishで何回やってもビルドに失敗してしまう9解決


す²

リンク

2022/4/16(Sat) 22:12:09|NO.96031

dishビルド処理中...のところで失敗してしまいます
Seeと書かれてるところもサイトが英語でわかりません。
原因がわかる方、教えてください。


FAILURE: Build failed with an exception. * Where: Build file 'D:\HSP特別枠\HSP3Dish\project\dish\app\build.gradle' line: 2 * What went wrong: An exception occurred applying plugin request [id: 'com.android.application'] > Failed to apply plugin 'com.android.internal.application'. > Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory. * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings --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 1s



この記事に返信する


しまくろねこ

リンク

2022/4/16(Sat) 22:47:54|NO.96032

こんばんは。

プロジェクト名にASCII文字以外の文字を使っていませんか?(日本語など)
プロジェクト名はアルファベットと一部の記号と数字でないといけません。
その場合一度プロジェクト自体を新たに作り直したほうが良いかと思います。

それからHSPのバージョンは3.7βを使っていますでしょうか?
できればHSP3.7βを使うことをお勧めします。



す²

リンク

2022/4/16(Sat) 23:00:36|NO.96033

とりあえずdishaという名前でプロジェクトを作り、何もいじらず、
a.hspを中身
#include "hspdish.as"
のみにし、やってみましたが、ダメでした。
HSPはHSP3.7β1にしています。



しまくろねこ

リンク

2022/4/16(Sat) 23:27:42|NO.96036

a.hsp の中身を

#include "hsp3dish.as" repeat redraw 0 color 0, 0, 0 : boxf color 255, 255, 255 pos 0, 0 : mes "12345" redraw 1 await 16 loop
にしても駄目でしょうか?

あと、気になったのは

> #include "hspdish.as"

ですが、#include "hsp3dish.as" でないと駄目です。"3"が抜けています。



TOMATO

リンク

2022/4/16(Sat) 23:27:50|NO.96037

プロジェクト名ではなくプロジェクトのパスに日本語が含んでいるのでダメと言われてるような…。

>Your project path contains non-ASCII characters.
プロジェクトのパスに非アスキー文字(日本語)が含まれています

D:\HSP特別枠\HSP3Dish\project\dish\app\build.gradle
↑特別枠という日本語がダメと言っているので、フォルダ名を変える必要があるかと。



しまくろねこ

リンク

2022/4/16(Sat) 23:33:31|NO.96038

> TOMATOさん
> D:\HSP特別枠\HSP3Dish\project\dish\app\build.gradle
> ↑特別枠という日本語がダメと言っているので、フォルダ名を変える必要があるかと。

その通りだと思います。
Dish Helperでプロジェクトを作成する際に、プロジェクト名を日本語で作成すると、プロジェクトフォルダ名がそのままの文字で作成されてしまうのです。



す²

リンク

2022/4/16(Sat) 23:46:56|NO.96039

>>96036
あ、3は入れてます。(ここに書くとき入れ忘れてました。紛らわしいことしてすみません。)

内容が変わりました。

#include "hsp3dish" のみでやったとき

> Task :app:preBuild UP-TO-DATE > Task :app:preDebugBuild UP-TO-DATE > Task :app:compileDebugAidl NO-SOURCE > Task :app:compileDebugRenderscript NO-SOURCE > Task :app:generateDebugBuildConfig > Task :app:javaPreCompileDebug > Task :app:generateDebugResValues > Task :app:generateDebugResources > Task :app:checkDebugAarMetadata > Task :app:createDebugCompatibleScreenManifests > Task :app:extractDeepLinksDebug > Task :app:processDebugMainManifest FAILED See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. D:\HotSoupPlocessor\HSP3Dish\project\disha\app\src\main\AndroidManifest.xml Error: Package name 'Dis' at position AndroidManifest.xml:3:5-18 should contain at least one '.' (dot) character > Task :app:mergeDebugResources Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings 8 actionable tasks: 8 executed FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > Manifest merger failed : Package name 'Dis' at position AndroidManifest.xml:3:5-18 should contain at least one '.' (dot) character * 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 4s

両方した場合

> Task :app:preBuild UP-TO-DATE > Task :app:preDebugBuild UP-TO-DATE > Task :app:compileDebugAidl NO-SOURCE > Task :app:compileDebugRenderscript NO-SOURCE > Task :app:generateDebugBuildConfig > Task :app:javaPreCompileDebug > Task :app:generateDebugResValues > Task :app:checkDebugAarMetadata > Task :app:generateDebugResources > Task :app:createDebugCompatibleScreenManifests > Task :app:extractDeepLinksDebug > Task :app:processDebugMainManifest FAILED See http://g.co/androidstudio/manifest-merger for more information about the manifest merger. D:\HotSoupPlocessor\HSP3Dish\project\disha\app\src\main\AndroidManifest.xml Error: Package name 'Dis' at position AndroidManifest.xml:3:5-18 should contain at least one '.' (dot) character > Task :app:mergeDebugResources Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.3/userguide/command_line_interface.html#sec:command_line_warnings 8 actionable tasks: 8 executed FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > Manifest merger failed : Package name 'Dis' at position AndroidManifest.xml:3:5-18 should contain at least one '.' (dot) character * 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 3s



しまくろねこ

リンク

2022/4/16(Sat) 23:59:06|NO.96040

パッケージ名に「Dis」のみを入力していませんか?
パッケージ名は最低でも「xxx.xxx」の形式でドットを1つ以上入れた形式にしないといけません。
なのでパッケージ名に「Dis.test」などにすればビルドが通ると思います。



す²

リンク

2022/4/17(Sun) 01:48:54|NO.96041

.が必要なのですね。
その通りにしたら、できました。
ありがとうございました。



zrs90(5さい)

リンク

2022/4/17(Sun) 02:06:24|NO.96042

おっ! 出来ましたか。おめでとうございます。
コンビニ帰りに気付いて
スレッドの途中から見てました。


す さん 運が良いですね。
しまくろねこ さん と TOMATO さんに
直接教えてもらっているのは、うらやましいです。
(※私は、ネット回線なし、iPhoneだけなので
何も出来ないんですが。)



ONION software Copyright 1997-2023(c) All rights reserved.