Android清单找不到
我正在尝试将我的应用程序配置为对Chromecast功能按钮进行编程 我正在阅读所有chromecast SDK,上面说我必须安装Google Play服务。 我在同一个工作区将库链接到我的项目。我做得很好,因为我有一个新的Android依赖库,名为google\u play\u services.jar 当我达到这一点时,我想测试googlePlayServices是否可用,因此我想使用:Android清单找不到,android,android-manifest,google-play-services,chromecast,Android,Android Manifest,Google Play Services,Chromecast,我正在尝试将我的应用程序配置为对Chromecast功能按钮进行编程 我正在阅读所有chromecast SDK,上面说我必须安装Google Play服务。 我在同一个工作区将库链接到我的项目。我做得很好,因为我有一个新的Android依赖库,名为google\u play\u services.jar 当我达到这一点时,我想测试googlePlayServices是否可用,因此我想使用: GooglePlayServicesUtil.isGooglePlayServicesAvailable
GooglePlayServicesUtil.isGooglePlayServicesAvailable(getApplicationContext());
并打印一个带有结果的日志
但问题出现在这里。当我运行我的应用程序时,它说这不在我的Android清单中
我的Android清单已经有以下几行:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.chromecastAPP"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.chromecastAPP.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
有什么不同的解决方案吗
谢谢我也面临这个问题。我刚刚用它的更新版本更新了我的SDK Google Play服务,它为我工作了。。。
试试看,它可能对您也有用。元数据必须在应用程序标记中。 编辑应用程序的AndroidManifest.xml文件,并在链接中添加以下声明。 试试这个:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.chromecastAPP"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.chromecastAPP.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</application>
</manifest>
请发布您的全部清单文件,包括所有我的清单元数据,请发布在应用程序中tagscheck我的答案如果对您有帮助,我在下面发布为什么我投反对票?:S:SI今天早上更新了所有SDK google Play服务,然后我才开始将其包含到我的应用程序中。这对我不起作用。谢谢,好的,首先在你的libs文件夹中添加google play服务jar文件,然后右键单击你的项目->属性->java构建路径->库->添加库->从你的libs文件夹中选择库,你添加了哪些->之后去订购和导出->检查你的google play服务库,如果没有选中的话..希望它能帮助你..现在你的答案是太好了+从我身边爬起来。