前提・実現したいこと
cocos-2dxにて、Androidアプリを開発しようとしています。
発生している問題・エラーメッセージ
突然、以下のコマンドを実行するとエラーが出るようになりました。(①)
(何かしらのアップデートの影響だと考えています)
cocos run -p android --android-studio
ただ、以下のサイトを参考に、httpcore-X.X.X.jarとhttpclient-X.X.X.jarを
プロジェクト内に配置すると、①のエラーは解消されました。
https://fantastic-works.com/archives/393
ただし、今度は別のエラーが出てきてしまい、対処方法がわからない状態です。(②)
① \cocos2d\cocos\platform\android\java\src\org\co cos2dx\lib\Cocos2dxDownloader.java:9: エラー: パッケージorg.apache.httpは存在しません import org.apache.http.Header; ^ C:\liquidfun\liquidfun\Box2D\LFmakeTest\cocos2d\cocos\platform\android\java\src\org\co cos2dx\lib\Cocos2dxDownloader.java:10: エラー: パッケージorg.apache.http.messageは存在 しません import org.apache.http.message.BasicHeader; などなど、、、 ② > Task :【プロジェクト名】:transformResourcesWithMergeJavaResForDebug FAILED Task ':【プロジェクト名】:transformResourcesWithMergeJavaResForDebug' is not up-to-date becaus e: Task has failed previously. All input files are considered out-of-date for incremental task ':【プロジェクト名】:transform ResourcesWithMergeJavaResForDebug'. :【プロジェクト名】:transformResourcesWithMergeJavaResForDebug (Thread[Task worker for ':',5,m ain]) completed. Took 0.168 secs. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':【プロジェクト名】:transformResourcesWithMergeJavaResForDebug'. > More than one file was found with OS independent path 'META-INF/DEPENDENCIES' * Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get mo re log output. Run with --scan to get full insights.
該当のソースコード
試したこと
以下のサイト
https://kwmt27.net/2017/11/02/migrate-android-studio2.0-to-3.0/
を参考に、
AndroidStudioのターミナルにて、
gradlew clean
を実行しましたが、結果は変わらずでした。
補足情報(FW/ツールのバージョンなど)
・NDK:android-ndk-r10e
・AndroidStudio:3.2.1
・compileSdkVersion 27
・buildToolsVersion "28.0.3"
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。