Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error:The 'java' plugin has been applied, but it is not compatible with the Android plugins #20

Closed
caxton opened this issue Jun 30, 2015 · 1 comment

Comments

@caxton
Copy link

caxton commented Jun 30, 2015

I simply added protobuf setting in build.gradle, and got the error "Error:The 'java' plugin has been applied, but it is not compatible with the Android plugins".

(Android Studio version 1.2.2).

build.gradle:

apply plugin: 'com.android.application'
apply plugin: 'com.google.protobuf'

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath "com.google.protobuf:protobuf-gradle-plugin:0.4.1"
    }
}

repositories {
    jcenter()
    mavenCentral()
    maven {
        url 'https://oss.sonatype.org/content/repositories/snapshots/'
    }
}

android {
...
@ejona86
Copy link
Collaborator

ejona86 commented Jun 30, 2015

Issue #11 is for not working with the android plugin. You can follow that issue for learning about the progress in fixing the problem.

@ejona86 ejona86 closed this as completed Jun 30, 2015
podarsmarty pushed a commit to podarsmarty/protobuf-gradle-plugin that referenced this issue Jul 22, 2016
* Added up navigation
* Username updates on change
* Account usage warning added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants