“包过滤器删除了所有包”Android Studio中的错误(“The package filter removed all packages” error in Android Studio)

系统教程 行业动态 更新时间:2024-06-14 17:00:14
“包过滤器删除了所有包”Android Studio中的错误(“The package filter removed all packages” error in Android Studio)

我被困在这个错误:

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 / reinstall

SAME 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

更多推荐

本文发布于:2023-04-18 00:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/ca91d21ec9c46c3d41f56dfd27cc3896.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:过滤器   错误   Android   Studio   package

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!