我被困在这个错误:
Android Studio包过滤器删除了所有包
我发现的最接近的问题是这个 ,但不幸的是,这没有帮助。
这是我得到的错误:
我有一个有效的互联网连接,所以我不知道为什么Android Studio认为没有连接。 我一直在寻找上面提到的'过滤器',但我没有找到关于这个主题的任何内容。
另外,我安装了以下SDK平台和工具:
最后但并非最不重要的是,我的构建Gradle:
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '21.1.2' defaultConfig { applicationId "company.MyApp" minSdkVersion 14 targetSdkVersion 23 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile project(':facebookSDK') compile project(':comcrashlyticssdkandroid_crashlytics') compile 'com.android.support:support-v4:18.0.0' compile 'com.google.android.gms:play-services:+' compile files('libs/YouTubeAndroidPlayerApi.jar') compile files('libs/libGoogleAnalyticsServices.jar') }接下来要检查什么才能解决这个问题?
I am stuck on this error:
Android Studio The package filter removed all packages
The closest question I've found is this one, but unfortunately that didn't help.
Here's the error I'm getting:
I have an active internet connection that works so I'm stuck trying to figure out why Android Studio thinks there is no connection. I've searched around for the mentioned 'filters' but I haven't found anything on that subject.
Also, I have the following SDK Platforms & Tools installed:
Last but not least, my build Gradle:
apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion '21.1.2' defaultConfig { applicationId "company.MyApp" minSdkVersion 14 targetSdkVersion 23 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile project(':facebookSDK') compile project(':comcrashlyticssdkandroid_crashlytics') compile 'com.android.support:support-v4:18.0.0' compile 'com.google.android.gms:play-services:+' compile files('libs/YouTubeAndroidPlayerApi.jar') compile files('libs/libGoogleAnalyticsServices.jar') }What's something to check next in order to tackle this issue?
最满意答案
解决了
背景故事:
这是一个最初在eclipse中构建的SVN项目,我们目前正在将其迁移到Android Studio。 在Android Studio升级后,我开始遇到这个问题,并且没有任何人会让我通过它。 这是我尝试过的:
通过SDK管理器更新SDK 在Project Manager中更改Build Tools版本 ./android update sdk --no-ui in terminal(mac osx) 卸载/重新安装同样的问题 - 构建工具安装失败
解
所以我扔了svn文件夹并下载一个新的。 在这个过程中的某件事清除了一切。 这并没有真正解决问题,但也许这将有助于某人。 祝你好运
Solved
The backstory:
This is an SVN project originally built in eclipse and we're currently migrating it over to Android Studio. Upon Android Studio upgrades I started experiencing this issue and NOTHING would get me through it. Here's what I tried:
Updating SDK's via SDK manager Changing Build Tools version in Project Manager ./android update sdk --no-ui in terminal (mac osx) uninstall / reinstallSAME ISSUES - Build tools install failed
Solution
So I tossed the svn folder and download a new one. Something during that process cleared everything up. That doesn't really solve the issue but perhaps this will help someone out. Good Luck
更多推荐
发布评论