【发布时间】:2019-06-03 08:52:36
【问题描述】:
我尝试从 git 克隆这个应用程序https://github.com/SimCoderYoutube/TinderClone
我遵循这样的包名称设置 Rename package in Android Studio
但即使我尝试相同的方法,它仍然显示错误
我是这样跟着包名的,但还是说名字不对。 但是我的屏幕上的包名是一样的。
gradle 错误也删除了有问题的部分,但它指示将其替换为 'implementation' 但是我显然将“编译”更改为“实现”
!-- 这是我的 build.gradle(Module:app) --!
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.simcoder.tinder"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:support-annotations:x.x.x'
implementation 'com.google.firebase:firebase-core:11.0.4'
implementation 'com.google.firebase:firebase-database:11.0.4'
implementation 'com.google.firebase:firebase-auth:11.0.4'
implementation 'com.google.firebase:firebase-storage:11.0.4'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.lorentzos.swipecards:library:1.0.9'
testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
!-- 这是我的错误--!
错误:找不到与包名称“com.simcoder.tinder”匹配的客户端
警告:配置“编译”已过时,已替换为“实施”和“API”。 它将在 2018 年底删除。有关更多信息,请参阅:http://d.android.com/r/tools/update-dependency-configurations.html 受影响的模块:app
如果您能告诉我如何解决它,我将不胜感激。
【问题讨论】: