buildscript {
repositories {
apply plugin: 'announce'
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories
{
google()
jcenter()
maven{ url "https://jitpack.io"}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
defaultConfig {
applicationId "chocolahat.softeng.sweetbitescafe"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.+'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
// My Library
implementation 'com.google.firebase:firebase-core:11.6.2'
implementation 'com.google.firebase:firebase-database:11.6.2'
implementation 'com.android.support:cardview-v7:26.+'
implementation 'com.android.support:recyclerview-v7:26.+'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.firebaseui:firebase-ui-database:3.1.2'
implementation 'com.cepheuen.elegant-number-button:lib:1.0.2'
implementation 'com.android.support:design:26.+'
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
implementation 'com.google.android.gms:play-services-location:11.6.2'
implementation 'com.github.mancj:MaterialSearchBar:0.7.1'
implementation 'com.github.d-max:spots-dialog:0.7@aar'
}
apply plugin: 'com.google.gms.google-services'
mainactivity.java:18行代码是setContentView(r.layout.activity_main);
我该怎么解决这个?
API level 26提供了默认的font
属性。而相同的字体属性可能已在代码中定义为自定义字体属性
的一部分。
解决方法:更改您的自定义字体属性名称。
将font
改为custom_font
并在XML文件中作为custom_font:
使用
我尝试了“multidexenabled true”和“”,但错误继续出现。似乎有一些构建问题。这是什么?
我在学习android studio时遇到了这个错误: 08-20 11:56:52.192 981 5-9815/com.example.android.courtcountee1 E/AndroidRuntime:致命异常:main process:com.example.android.android.courtcountee1,PID:9815 java.lang.runtimeExcep
编译过程中的错误有: 说明资源路径位置类型new AsyncHttpResponseHandler(){}类型的onSuccess(String)方法必须重写或实现超类型方法
我安装了最新版本的Android Studio。同步gradle时遇到以下错误:无法获取'https://jcenter.bintray.com/com/android/tools/build/gradle/4.1.2/gradle-4.1.2.pom“。从服务器收到状态代码403:禁止禁用渐变“脱机模式”和同步项目。我禁用了“脱机模式”,并且在下载时再次同步”https://jcenter.bi
未能执行目标 org.apache.maven.plugins:maven-stretype-plugin:2率(default-cli)在项目独立pom:所需的原型做st(com.day.jcr.vault:多模块内容包原型:1.0.0) 请帮助并提供我一个链接,以了解使用maven创建项目
错误:将字节码转换为dex时出错:原因:com . Android . dex . dex异常:多个dex文件定义了Lcom/Google/Android/GMS/internal/measurement/zza bn;:app:transformClassesWithDexForDebug失败错误:任务执行失败”:app:transformClassesWithDexForDebug。com .