【发布时间】:2018-07-30 05:37:01
【问题描述】:
我已生成已签名的 Apk 并安装在 Android 设备中,它会显示 Play Protect 阻止的对话框。当成功安装设备中的调试应用程序时。
我用过两个谷歌Api。映射和youtube之后我将使用firebase api。
如何在Android Studio或谷歌Api更改项目代码,发布Apk安装成功。
依赖:-
[dependencies {
compile fileTree(include: \['*.jar'\], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile files('libs/universal-image-loader-1.9.5.jar')
compile files('libs/mpandroidchartlibrary-2-2-4.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.android.support:appcompat-v7:25.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:25.0.1'
compile 'com.squareup.okhttp:okhttp:2.0.0'
compile 'com.android.support:support-v4:25.0.1'
compile 'com.roomorama:caldroid:3.0.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.github.bumptech.glide:glide:4.7.1'
compile 'com.android.support:cardview-v7:25.0.1'
compile 'com.android.support:recyclerview-v7:25.0.1'
compile 'com.google.android.gms:play-services:11.0.4'
compile 'com.google.firebase:firebase-core:11.0.4'
testCompile 'junit:junit:4.12'
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.0.1'
}
}
}
}
【问题讨论】:
标签: android android-studio google-api