Barbanyaga / RobobindingValidation

Project for creating validation in presentation model for Robobinding Framework
Apache License 2.0
0 stars 0 forks source link

AbstractPresentationModel not found #1

Open Sajjon opened 9 years ago

Sajjon commented 9 years ago

Hi!

The class "AbstractPresentationModel" is not found. I am using latest RoboBinding version, please check my gradle file.

How can I get this working?

Gradle file:

buildscript {
    repositories {
        mavenCentral()
        maven() {
            name 'RoboBinding AspectJPlugin Maven Repository'
            url "https://github.com/RoboBinding/RoboBinding-aspectj-plugin/raw/master/mavenRepo"
        }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.+'
        classpath 'org.robobinding:aspectj-plugin:0.8.+'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'org.robobinding.android-aspectj'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "test"
        minSdkVersion 15
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
    maven() {
        name 'SonaType snapshot repository'
        url 'https://oss.sonatype.org/content/repositories/snapshots'
        //url "file://D:/git/RoboBinding/framework/mavenRepo"
    }
}

ext {
    robobindingVersion = 'latest.integration'
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup:otto:1.3.6'
    compile 'com.google.android.gms:play-services:6.5.87'

    compile ("org.robobinding:robobinding:$robobindingVersion:with-aop-and-dependencies") {
        exclude group: 'com.google.guava', module: 'guava'
    }
    aspectPath ("org.robobinding:robobinding:$robobindingVersion:with-aop-and-dependencies") {
        exclude group: 'com.google.guava', module: 'guava'
    }
    apt "org.robobinding:codegen:$robobindingVersion"
}
Sajjon commented 9 years ago

@Barbanyaga the AbstractPresentationModel is listed here: http://grepcode.com/file/repo1.maven.org/maven2/org.robobinding/robobinding/0.8.8/org/robobinding/presentationmodel/AbstractPresentationModel.java#AbstractPresentationModel

So I don't understand why I get:

Cannot resolve symbol 'AbstractPresentationModel'

Any idea?

Barbanyaga commented 9 years ago

@Sajjon I develop my BasePresentationModel class using Robobinding 0.8.6. It's works right. 0.8.7, 0.8.8 has many changes. In 0.8.9 abstract class BasePresentationModel disappeared.

You can use 0.8.6 with next Gradle configuration: dependencies { ... def robobindingVersion = "0.8.6" compile"org.robobinding:robobinding:${robobindingVersion}" }