Open SyuanLiao opened 4 years ago
Same problem. I'm working from what looks like the same example as SyuanLiao: https://github.com/ollide/rosjava_android_template/tree/master/rosandroid-example-app/src/main/java/org/ollide/rosandroid
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.rosdroid"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'org.ros.android_core:android_honeycomb_mr2:0.1.2'
implementation 'org.ros.android_core:android_gingerbread_mr1:0.1.2'
implementation 'org.ros.rosjava_core:rosjava:0.3.6'
implementation 'org.ros.rosjava_messages:std_msgs:0.5.11'
}
Solved the same problem according to this.
Adding message related dependencies manually to your build.gradle file:
implementation 'org.ros.rosjava_bootstrap:message_generation:[0.3, 0.4)'
It looks like newer version of gradle fails to resolve these second-level dependencies properly.
Hi all,
I tried to do this:
then I got the error message:
And this is my build.gradle:
another one:
May somebody help me? Thank you!!