误删安卓Android sdk包,打包出现错误解决

摘要:
我删除了一些SDK,为电脑腾出空间。因此,ionic未能打包Android。0,SDKManagerAVDManager无法打开,啊,啊。。。这还需要下载Android SDK管理器,如下所示。1,无法在AndroidSDK中找到GradleWrapper。您需要更新AndroidSDK。https://stackoverflow.com/questions/42613882/error-could-not-find-gradle-wrapper-within-android-sdk-might-need-to-update-yoIjustexperiencedthesameproblem.ItmaybeanocclusionintheinstructionsregardinghowtoinstallAndroidStudiowithalltheSDKToolswhichbothyouandImissedorpossiblyabugcreatedbyanewreleaseofStudiowhichdoesnotfollowthesamefileconventionsastheolderversions.IleantowardsthelattersincemanyoftheSOpostsonthistopicseemstopointtoanANDROID_PATHwithafoldercalledandroid-sdkwhichdoesnotappearinthelatestversion.Thereappearstobeaworkaroundthough,我刚开始在机器上运行。下面是我的ID:Downloadtools_ R25.2.3-windows。从AndroidDownloads下载。ExtractedzipondsktopReplacedC:UsersusernameAppDataLocalAndroidsdkoolswithExtractedsubfoldertools/Inputprojectfolder:$cordovaplatformsrmovedandroid$Cordovaplatformsadandroid再次将Android SDKTools下载到官方网站,并将其覆盖到Android目录中。2.与以下标题类似的错误是安装了Google Apis。

手贱删了些sdk以腾电脑空间。结果ionic打包Android出错。

0,SDK Manager AVD Manager都打不开了啊,啊,啊,啊,啊。。。

这个也是需要下载Android SDK Manager,与下面相同。

1,Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.

https://stackoverflow.com/questions/42613882/error-could-not-find-gradle-wrapper-within-android-sdk-might-need-to-update-yo

I just experienced the same problem.

It may be an occlusion in the instructions regarding how to install (or upgrade) Android Studio with all the SDK Tools which both you and I missed or possibly a bug created by a new release of Studio which does not follow the same file conventions as the older versions. I lean towards the latter since many of the SO posts on this topic seems to point to an ANDROID_PATH with a folder called android-sdk which does not appear in the latest (2.3.0.8) version.

There appears to be a workaround though, which I just got to work on my machine. Here's what I did:

    • Download tools_r25.2.3-windows.zip from Android Downloads.
    • Extracted zip on desktop
    • Replaced C:UsersusernameAppDataLocalAndroidsdk ools with extracted sub-folder tools/
    • In project folder:

      $ cordova platforms remove android
      $ cordova platforms add android

重新下载Android SDK tools 去官网,覆盖到Android目录下(C:Program Files (x86)Androidandroid-sdk)即可。

2,类似下面标题的一个错误,也是安装了GoogleApis好了。

failed to find target with hash string android-23

In my case, clearing caché didn't work.

On SDK Manager, be sure to check the box on "show package descriptions"; then you should also select the "Google APIs" for the version you are willing to install.

Install it and then you should be ok

ionic build android --prod --release出现如下错误:

BUILD FAILED

Total time: 8.809 secs

https://jcenter.bintray.com/com/android/support/support-v4/
Required by:
:android:unspecified
> Could not find any matches for com.android.support:support-v4:+ as no versions of com.android.support:support-v4 are available.
Required by:
:android:unspecified

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

Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find any matches for com.android.support:support-v4:24.1.1+ as no versions of com.android.support:support-v4 are available.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml
https://jcenter.bintray.com/com/android/support/support-v4/
Required by:
:android:unspecified
> Could not find any matches for com.android.support:support-v4:+ as no versions of com.android.support:support-v4 are available.
Required by:
:android:unspecified

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

原因是手贱腾电脑空间删了些以为“没用”的sdk,谁知把“Android Support Repository”删了,打开SDK Manager 重新install就行了。

免责声明:文章转载自《误删安卓Android sdk包,打包出现错误解决》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇【性能测试】:JVM内存监控策略的方法,以及监控结果说明Linux服务器安装tomcat、JDK、SVN等常用开发软件总结下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Android:JNI与NDK(二)交叉编译与动态库,静态库

  欢迎关注公众号,第一时间获取最新文章:   本篇目录 一、前言 本篇主要以window开发环境为背景介绍一下NDK开发中需要掌握的交叉编译等基础知识,选window系统主要是照顾大多数读者,mac ,linux操作系统基本是同样适用的。 交叉编译就是在A平台编译出可以在B平台执行的文件,对于我们安卓开发者来说交叉编译就是在window或者mac或者...

离线搭建安卓环境 adt

1、下载SDK。到安卓官网http://developer.android.com/sdk/index.html 下载SDK,选这个如图1,因为这个是adt-bundle-windows-x86的压缩包,里面包含eclipse和SDK,eclipse它已经集成好了ADT。其实这个包下载的并不是很全,不全的后面还是要在线下载,但是相对的时间会短点!(这也是后...

部署自己的聊天系统 DuckChat(鸭信)

之前在找一款能自己部署的聊天系统,要求含有手机端APP,最好部署过程能简单点的。看了几款稍嫌麻烦,有的还没有app。今天无意间发现了这款DuckChat,开源免费,有手机APP,部署非常简单。直接上传到你的web根目录然后安装就行了。 演示地址(含Web体验) http://gaga.akaxin.com Android客户端 Android下...

ffmpeg综合应用示例(三)——安卓手机摄像头编码

本文的示例将实现:读取安卓手机摄像头数据并使用H.264编码格式实时编码保存为flv文件。示例包含了 1、编译适用于安卓平台的ffmpeg库 2、在java中通过JNI使用ffmpeg 3、读取安卓摄像头数据并在后台线程中使用ffmpeg进行编码的基本流程 具有较强的综合性。 编译适用于安卓平台的ffmpeg库 平时我们编译ffmpeg类库都是在x86平...

Android 源代码自动编译packages/apps

/*************************************************************************** * Android 源代码自动编译packages/apps * 说明: * 有时候自己编写了一些测试软件,可能会希望自动编译到Android系统中...

安卓手机tcpdump的使用

一.常规操作步骤 1. 手机要有root权限 2. 下载tcpdump http://www.strazzere.com/android/tcpdump 3. adb push c:wherever_you_put cpdump /data/local/tcpdump 如果这一步真机无法push,可以用adb push c:where_you_...