richeditor-android icon indicating copy to clipboard operation
richeditor-android copied to clipboard

Bug: can't import

Open AndroidDeveloperLB opened this issue 8 years ago • 16 comments

I see this:

image

I tried to remove the part of the "publish", but still got an error: image

How come?

AndroidDeveloperLB avatar Feb 11 '18 14:02 AndroidDeveloperLB

I can't even download the sample from the Play Store: https://play.google.com/store/apps/details?id=jp.wasabeef.sample

image

AndroidDeveloperLB avatar Feb 11 '18 14:02 AndroidDeveloperLB

publish {
  userOrg = POM_DEVELOPER_ID
  groupId = GROUP
  artifactId = ARTIFACT_ID
  publishVersion = VERSION_NAME
  desc = POM_DESCRIPTION
  website = POM_URL
//  bintrayUser = BINTRAY_USER
//  bintrayKey = BINTRAY_API_KEY
  autoPublish = false
}

you should delete bintrayUser & bintrayKey

nuoxiang avatar Feb 24 '18 02:02 nuoxiang

@nuoxiang I've tried now. Still got build errors: image

AndroidDeveloperLB avatar Feb 24 '18 09:02 AndroidDeveloperLB

@AndroidDeveloperLB the errors seem like download library error,check you network .

nuoxiang avatar Feb 25 '18 03:02 nuoxiang

try click Re-download dependencies ...

nuoxiang avatar Feb 25 '18 03:02 nuoxiang

My network is fine. Pressing on this link doesn't help.

AndroidDeveloperLB avatar Feb 25 '18 07:02 AndroidDeveloperLB

Tested on 2 PCs on different cities. Still same issue.

AndroidDeveloperLB avatar Feb 25 '18 07:02 AndroidDeveloperLB

or u try to click Try again

nuoxiang avatar Feb 25 '18 09:02 nuoxiang

Also doesn't work. See attached project. richeditor-android.zip

AndroidDeveloperLB avatar Feb 25 '18 10:02 AndroidDeveloperLB

I think your gradle version is too high , some plugin don't compatibility. in build.gradle

...
 dependencies {
        classpath 'com.android.tools.build:gradle:3.2.0-alpha04'
//        classpath 'com.novoda:bintray-release:0.3.4'
    }

in /richeditor/build.gradle

apply plugin: 'com.android.library'
//apply plugin: 'com.novoda.bintray-release'
...
//publish {
//  userOrg = POM_DEVELOPER_ID
//  groupId = GROUP
//  artifactId = ARTIFACT_ID
//  publishVersion = VERSION_NAME
//  desc = POM_DESCRIPTION
//  website = POM_URL
//  bintrayUser = BINTRAY_USER
//  bintrayKey = BINTRAY_API_KEY
//  autoPublish = false
//}

or you can use this project config.

nuoxiang avatar Feb 26 '18 03:02 nuoxiang

@nuoxiang The gradle version is fine. It will occur on the stable version too:

classpath 'com.android.tools.build:gradle:3.0.1'

Please update the project to work at least with the stable version of gradle, without the need of us changing anything in the code to make it work.

Only after commenting what you wrote, including the buildToolsVersion part (it's written twice for some reason) , it builds fine:

image

AndroidDeveloperLB avatar Feb 26 '18 07:02 AndroidDeveloperLB

com.novoda.bintray-release plugin maybe have compatibility,the plugin only use publish library.

nuoxiang avatar Feb 26 '18 08:02 nuoxiang

@nuoxiang That may be, but still it ruins the entire build for anyone who wish to try this sample.

AndroidDeveloperLB avatar Feb 26 '18 08:02 AndroidDeveloperLB

@AndroidDeveloperLB I got the same trouble, and have solved according to your method . thanks.

CnPeng avatar Mar 07 '18 10:03 CnPeng

@CnPeng I hate the cases that I need to modify the project to make it build fine. Versions of components is one thing, but messing around with random text in the gradle files...

AndroidDeveloperLB avatar Mar 07 '18 10:03 AndroidDeveloperLB

thx

o0o0oo00 avatar Feb 19 '19 03:02 o0o0oo00