まず、この問題について多くのテーマがありますが、まだ解決できません。 https://developers.aviary.com/docs/android/setup-guide#(セクション4.2、ない4.1)ここ Androidスタジオの階調エラー、aviary sdkの「デフォルトで設定が見つかりません」
は私 ルートのGradleファイルです:build.gradle
私はちょうどここのガイドに従うことによって、鳥小屋SDKをカスタマイズしようとしている
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
settings.gradle:
ここは私アプリのbuild.gradleファイルです:
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "com.example.agaze.myapplication"
minSdkVersion 10
targetSdkVersion 20
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:20.0.0'
compile project(':Aviary-Android-Sample-App')
}
ここでは私のファイルツリー:
あなたのヒントを事前に感謝します。
アントニン
trueにする必要があります。 minifyEnabled falseを指定すると、リリース版をビルドするときにプロガードが無効になる minifyEnabledを設定する理由は、proguardが外部ライブラリファイルを難読化している可能性があるためです。 http://stackoverflow.com/questions/38081077/app-crashed-when-i-build-a-signed-apk-with-jsoup – Swathin