浏览器密钥,服务器密钥未自动生成

时间:2018-11-20 13:39:27

标签: api google-maps android-studio

我是android studio的新手,我想在我的android studio项目中使用google API映射,并一直按照教程进行操作。问题是,谷歌api只生成1个API密钥,而没有为浏览器密钥自动生成密钥。它应该在it should generated all this key下面生成密钥图片(我的项目仅生成1个密钥)。请帮忙。到底是什么问题。我已经删除了Google API活动,并多次创建了它。但是浏览器密钥仍然无法自动生成。这是我的清单

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<!--
 The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
 Google Maps Android API v2, but you must specify either coarse or fine
 location permissions for the 'MyLocation' functionality.
-->
<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="Heart Disease Symptom Checker"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity android:name=".HomeActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".LoginActivity" />
    <activity android:name=".ProfileActivity" />
    <activity android:name=".Page1Activity" />
    <activity android:name=".Page2Activity" />
    <activity android:name=".Page3Activity" />
    <activity android:name=".Page4Activity" />
    <activity android:name=".PasswordActivity" />
    <activity android:name=".MainActivity" />
    <activity android:name=".TwoDActivity1" />
    <activity android:name=".TwoDActivity2" />
    <activity android:name=".CheckboxOtherActivity" />
    <activity android:name=".HeartSymptomActivity" />
    <activity android:name=".RuleBasedActivity" />
    <activity android:name=".CheckboxOtherActivity2" />
    <activity android:name=".GenderActivity" />
    <activity android:name=".ResultDescription" />
    <activity android:name=".DurationActivity" />
    <activity android:name=".UpdateHomePage" />

</application>

`

这是我的应用gradle

 dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0-rc01'
    implementation 'com.android.support:cardview-v7:28.0.0-rc01'
    implementation 'com.android.support:design:28.0.0-rc01'
    implementation 'com.android.support:animated-vector-drawable:28.0.0-rc01'
    implementation 'com.android.support:support-media-compat:28.0.0-rc01'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:recyclerview-v7:28.0.0-rc01'
    implementation 'com.android.support:cardview-v7:28.0.0-rc01'

    implementation 'com.android.support:customtabs:28.0.0-rc01'
    implementation 'com.android.support:support-v4:28.0.0-rc01'

    implementation 'com.google.android.gms:play-services-maps:15.0.1'
    //implementation 'com.google.android.gms:play-services-location:15.0.1'
    //implementation 'com.google.android.gms:play-services-gcm:15.0.1'

    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    //add this line
    implementation 'com.google.firebase:firebase-auth:16.0.2'
    implementation 'com.google.firebase:firebase-database:16.0.1'
    implementation 'com.github.aakira:expandable-layout:1.4.2@aar'
    testCompile 'junit:junit:4.12'
}


apply plugin: 'com.google.gms.google-services

'

0 个答案:

没有答案