2017-10-25 10 views
0

この問題を数時間デバッグしようとしました!オンラインで多くのソリューションを試してみましたが、いずれも機能していないようです。/home/hisham/Android/Sdkのハッシュ文字列 'android-25'でターゲットを見つけることができません

Build properties not found for package Android SDK Platform 25 


File /root/.android/repositories.cfg could not be loaded. 


FAILURE: Build failed with an exception. 

* What went wrong: 
A problem occurred configuring root project 'android'. 
> 
Failed to find target with hash string 'android-25' in: /home/hisham/Android/Sdk 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

Total time: 39.749 secs 
Error: /home/hisham/Desktop/Dev-PGDoc/ionic_app/platforms/android/gradlew: Command failed with exit code 1 Error output: 
FAILURE: Build failed with an exception. 

* What went wrong: 
A problem occurred configuring root project 'android'. 
> Failed to find target with hash string 'android-25' in: /home/hisham/Android/Sdk 

This is the error image when running 'ionic cordova build android'

I have Sdk platform 25 installed

私はこれをどのように修正すればよいですか?

答えて

0

最終的に修正されました!次のうちどれが固定されているかわからない。 ANDROID_HOME = $ HOME /アンドロイド/ SDKから〜/ .bashrcの内部

  1. 変更$ ANDROID_HOME ANDROID_HOME = $ HOME /アンドロイド/ SDK /プラットフォーム・ツール
  2. 削除さにおけるプラットフォームのツールフォルダ内のバージョン25のフォルダSdkをインストールして、バージョン25を再度インストールします。 上記の2つを実行した後、システムを再起動すると、コンパイルして.apkファイルにイオンアプリを構築できるようになりました。

PS:これはパソコンの中にあるだけで、別の問題で同じ問題に直面している可能性があります。お役に立てれば。

関連する問題