Cordova/Phonegap Android目标:未安装[已安装Android Studio] [英] Cordova/Phonegap Android target: not installed [Android Studio Installed]
问题描述
仍然面临这个问题.我在整个Google搜索中找不到解决方案.
Still facing this issue. I searched all over google could not found a solutions.
- Mac OSX Sierra
- Android Studio 2.3
- Cordova/Phonegap(最新版本)
- Mac OSX Sierra
- Android Studio 2.3
- Cordova/ Phonegap (Latest Version)
Android的需求检查结果:
Requirements check results for android:
Java JDK:已安装1.8.0
Java JDK: installed 1.8.0
Android SDK:已安装true
Android SDK: installed true
Gradle:已安装
Gradle: installed
错误:某些要求检查失败
Error: Some of requirements check failed
.bash_profile ================================ # Setting JAVA_HOME Path JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home" # Setting ANDROID_HOME Path ANDROID_HOME="/Users/{localpath}/Library/Android/sdk" # Setting GRADLE_HOME Path GRADLE_HOME="/Users/{localpath}/Library/Android/gradle/gradle-3.4" export PATH="${GRADLE_HOME}/bin:${PATH}" export PATH="${ANDROID_HOME}/tools:$PATH" export PATH="${ANDROID_HOME}/platform-tools:$PATH"
Andriod清单
<?xml version='1.0' encoding='utf-8'?> <manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.company.myAPP" xmlns:android="http://schemas.android.com/apk/res/android"> <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /> <uses-permission android:name="android.permission.INTERNET" /> <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true"> <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize"> <intent-filter android:label="@string/launcher_name"> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-sdk android:minSdkVersion="21" android:targetSdkVersion="25" /> </manifest>
推荐答案
Facing exactly the same error, I encountered this answer on forum.ionicframework.com:
那样简单.
As easy as that.
我在Mac上遇到了问题,所以我确实下载了 SDK工具373 ,将其复制粘贴到/Users/username/Library/Android/sdk中,即可立即使用.
I had the problem on Mac, so I did download the SDK tools373, copy-paste it in /Users/username/Library/Android/sdk, and it worked instantly.
但是我绝对不知道是什么原因引起的.
But I absolutly don't know what causes the issue.
我也不知道是什么引起了这个问题,但是它帮助了我,一切都按预期进行.
And I don't know what causes the issue either, but it helped me and everything works as expected.
这篇关于Cordova/Phonegap Android目标:未安装[已安装Android Studio]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!