Форум для тех, кто программирует под Android
Anonymous
Имя не должно быть нулевым в Android Gradle
Сообщение
Anonymous » 28 янв 2026, 12:05
Я новичок в установке библиотек в студии Android, и у меня возникла проблема. Я продолжаю получать сообщение об ошибке: имя не должно быть нулевым при попытке настроить зависимости. Я пытаюсь установить эту библиотеку.
Вот код build.gradle.
Код: Выделить всё
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.example.webbj.imageeditor"
minSdkVersion 23
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
configurations{
compile
}
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 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
//compile 'com.isseiaoki:simplecropview:1.1.5'
**compile group: "com.isseiaoki", module: "simplecropview", version: "1.1.5"**
testCompile 'junit:junit:4.12'
compile project(':libraries:SimpleCropView')
Ошибка возникает в строке, окруженной звездочками.
Я был бы очень признателен, если бы кто-нибудь помог мне решить эту проблему.
Подробнее здесь:
https://stackoverflow.com/questions/455 ... oid-gradle
1769591125
Anonymous
Я новичок в установке библиотек в студии Android, и у меня возникла проблема. Я продолжаю получать сообщение об ошибке: имя не должно быть нулевым при попытке настроить зависимости. Я пытаюсь установить эту библиотеку. Вот код build.gradle. [code]apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { applicationId "com.example.webbj.imageeditor" minSdkVersion 23 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } configurations{ compile } 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 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' //compile 'com.isseiaoki:simplecropview:1.1.5' **compile group: "com.isseiaoki", module: "simplecropview", version: "1.1.5"** testCompile 'junit:junit:4.12' compile project(':libraries:SimpleCropView') [/code] Ошибка возникает в строке, окруженной звездочками. Я был бы очень признателен, если бы кто-нибудь помог мне решить эту проблему. Подробнее здесь: [url]https://stackoverflow.com/questions/45524286/name-must-not-be-null-in-android-gradle[/url]