Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/196.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 错误:未能找到com.google.settings的提供商信息_Android_Eclipse_Find - Fatal编程技术网

Android 错误:未能找到com.google.settings的提供商信息

Android 错误:未能找到com.google.settings的提供商信息,android,eclipse,find,Android,Eclipse,Find,我在Android应用程序上有这个问题。这是项目的代码 清单 编译时,显示错误: Failed to find provider info for com.google.settings API_密钥是在我的计算机中生成的,并且是正确的 请帮帮我 您正在将应用程序写入minSDK 8,但您使用的是MapFragment对象,该对象仅受SDK 11支持 您应该改为使用SupportMapFragment对象和FragmentActivity 代码中的另一个问题是您的权限: <permis

我在Android应用程序上有这个问题。这是项目的代码

清单

编译时,显示错误:

Failed to find provider info for com.google.settings
API_密钥是在我的计算机中生成的,并且是正确的


请帮帮我

您正在将应用程序写入
minSDK 8
,但您使用的是
MapFragment
对象,该对象仅受
SDK 11
支持

您应该改为使用
SupportMapFragment
对象和
FragmentActivity

代码中的另一个问题是您的权限:

 <permission
        android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
        android:protectionLevel="signature"/>
<uses-permission android:name="com.example.mapbcb.permission.MAPS_RECEIVE"/>

应该包含您的项目包:
com.example.mapbcb
而不是:
com.example.mapdemo

看看我写的这个博客,它介绍了如何使用
Google-support-v4
库集成谷歌地图API V2以支持Android平台的旧版本:


“编译时显示错误:未能找到com.google.settings的提供商信息”--不,它没有。首先,这是一个运行时错误,而不是编译时错误。第二,这与您的问题无关。我从代码中删除了您的密钥,无需向所有人显示。
package com.example.mapbcb;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }

}
Failed to find provider info for com.google.settings
 <permission
        android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
        android:protectionLevel="signature"/>
<uses-permission android:name="com.example.mapbcb.permission.MAPS_RECEIVE"/>