2017-11-18 8 views
0

最近、Ionic CLIをv3にアップグレードし、Android Studioを新しいリリースにアップデートしました。AndroidビルドのIonic Cordovaアップデートに関する問題

私は最近まで、更新後も正常に構築されていた2つの既存のIonic v1プロジェクトを持っています。

私のiOSはうまくいきますが、何らかの理由で私のアンドロイドビルドが動作しません。

エラーはエラーである:卵は、私はエラーについて何を読んでから

をEACCES、誤りで示したディレクトリに「chmodの777」を実行することによって解決される必要があるアクセス許可の問題のように見えます。

私はCordovaを削除して再追加しました。アンドロイドプラットフォームを削除して再追加しました。

しかし、何も動作していないようです!

以下に、my android buildコマンドの--verboseフラグの結果を示します。

私よりもずっと賢い人が私に見つからないことがあると思っていました。 --verboseでビルド実行中の

結果:

Mac myprogram$ chmod 755 hooks/after_prepare/* 
Mac myprogram$ cordova build android --verbose       
No scripts found for hook "before_build". 
No scripts found for hook "before_prepare". 
Checking config.xml and package.json for saved platforms that haven't been added to the project 
Config.xml and package.json platforms are the same. No pkg.json modification. 
Package.json and config.xml platforms are different. Updating config.xml with most current list of platforms. 
PlatformApi successfully found for platform android 
Checking config.xml for saved plugins that haven't been added to the project 
Checking for any plugins added to the project that have not been installed in android platform 
No differences found between plugins added to project and installed in android platform. Continuing... 
Generating platform-specific config.xml from defaults for android at /Users/mymac/Documents/Projects/myprogram/platforms/android/res/xml/config.xml 
Merging project's config.xml into platform-specific android config.xml 
Merging and updating files from [www, platforms/android/platform_www] to platforms/android/assets/www 
    copy www/index.html platforms/android/assets/www/index.html (updated file) 
Wrote out android application name "myprogram" to /Users/mymac/Documents/Projects/myprogram/platforms/android/res/values/strings.xml 
android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1 
Wrote out Android package name "com.freshconsulting.chainlink.myprogram" to /Users/mymac/Documents/Projects/myprogram/platforms/android/src/com/freshconsulting/chainlink/myprogram/MainActivity.java 
Updating icons at platforms/android/res 
Updating splash screens at platforms/android/res 
This app does not have additional resource files defined 
Prepared android project successfully 
Executing script found in hooks directory for hook "after_prepare": hooks/after_prepare/010_add_platform_class.js 
Running command: /Users/mymac/Documents/Projects/myprogram/hooks/after_prepare/010_add_platform_class.js /Users/mymac/Documents/Projects/myprogram 
add to body class: platform-android 
Command finished with error code 0: /Users/mymac/Documents/Projects/myprogram/hooks/after_prepare/010_add_platform_class.js /Users/mymac/Documents/Projects/myprogram 
Executing script found in plugin cordova-plugin-facebook4 for hook "after_prepare": plugins/cordova-plugin-facebook4/scripts/after_prepare.js 
No scripts found for hook "before_compile". 
Running command: /usr/libexec/java_home 
Command finished with error code 0: /usr/libexec/java_home 
ANDROID_HOME=/Users/mymac/Library/Android/sdk 
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home 
Running command: "/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle" -p /Users/mymac/Documents/Projects/myprogram/platforms/android wrapper -b /Users/mymac/Documents/Projects/myprogram/platforms/android/wrapper.gradle 
Error: spawn EACCES 

任意のアイデアをいただければ幸いです!

+0

'イオンパッケージのビルドを何android'のですか? – ewizard

+0

[エラー]申し訳ありません設定されたバックエンド(プロ)は、イオンパッケージ構築について知らない。 – cnak2

+0

あなたはグラデルインストールをchmodする必要があります。実際にコードバのバグです。私の答えを確認してください –

答えて

1

と解決の問題:

はsudo chmodの755 /アプリケーション/アンドロイド\ Studio.app/Contents/gradle/gradle-XXX/bin/gradle

+0

こんにちはSebastien、私はあなたの提案を試みたが、取得:chmod:/アプリケーション/ Android Studio.app/Contents/gradle/gradle-XXX/bin/gradle:いいえそのようなファイルやディレクトリ – cnak2

+0

@ cnak2あなたの場合は'gradle-4.1'は' gradle-xxx'ではありません –

+0

Sebastien、もう少し関連した別の問題で助けてくれるかもしれません:https://stackoverflow.com/questions/47397644/issue-with-compiling-ionic-android-platform – cnak2

関連する問題