GithubHelp home page GithubHelp logo

Issue importing about particletextview HOT 10 OPEN

yasic avatar yasic commented on May 28, 2024
Issue importing

from particletextview.

Comments (10)

searchy2 avatar searchy2 commented on May 28, 2024

You don't have the appropriate plugins installed. Please use the following gradle code that works.

apply plugin: 'com.android.library'

version = "0.0.5"

ext {
    bintrayRepo = 'maven'
    bintrayName = 'ParticleTextView'

    publishedGroupId = 'com.yasic.library'
    libraryName = 'ParticleTextView'
    artifact = 'particleTextView'

    libraryDescription = ''

    siteUrl = 'https://github.com/Yasic/ParticleTextView'
    gitUrl = 'https://github.com/Yasic/ParticleTextView.git'

    libraryVersion = '0.0.4'

    developerId = 'yasic'
    developerName = 'yasic'
    developerEmail = '[email protected]'

    licenseName = 'The Apache Software License, Version 2.0'
    licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
    allLicenses = ["Apache-2.0"]
}

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    resourcePrefix "yasic__"

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

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'io.reactivex:rxandroid:1.1.0'
}

If you are planning on submitting a PR, do not commit this custom Build file. The author of this repo uses it to upload the library to Maven. Instead, take a look at what I have done with PR #4 and proceed that way. Hope this helps!

from particletextview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 28, 2024

What exactly is missing that I need to download?
Why the need to change gradle? Why not put it on the repo?

Also, after putting the above text in gradle file, I still have a build error:

Error:resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not found
Error:failed linking references
Error:java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed:
Error:com.android.builder.internal.aapt.AaptException: AAPT2 link failed:
Error:Execution failed for task ':app:processDebugResources'.

Failed to execute aapt

image

from particletextview.

searchy2 avatar searchy2 commented on May 28, 2024

Most of the code in the Gradle file is for uploading the library to Maven. The author needs that code as part of the library.

What version of Build tools are you using?

from particletextview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 28, 2024

It says I have 26.0.0 rc2 , and many before.

from particletextview.

searchy2 avatar searchy2 commented on May 28, 2024

Try 25.0.2 to see if that works. Also, make sure to change the build tools and SDK version in the sample app folder as well. If all else fails, try downloading my fork. It has quite a few enhancements!

from particletextview.

Yasic avatar Yasic commented on May 28, 2024

@searchy2 Hi. I am sorry that I was working on another project recently so that I didn't see the notification. I have merged your pr just now and I am reviewing the code.

from particletextview.

Yasic avatar Yasic commented on May 28, 2024

@AndroidDeveloperLB I have update the build.gradle file and I think it should be work now. Please try it again.

from particletextview.

searchy2 avatar searchy2 commented on May 28, 2024

@Yasic Great library, thanks for the merge! There's still work to be done however. If the code looks good and passes your tests, it will need to be copied over to the Particle Surfaces class.

from particletextview.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on May 28, 2024

@Yasic I've cloned the project .
Now it works, but the "Sureface View Demo" is quite slow, espeically when trying to exit it.

from particletextview.

searchy2 avatar searchy2 commented on May 28, 2024

@Yasic I've cloned the project .
Now it works, but the "Sureface View Demo" is quite slow, espeically when trying to exit it.

The improvements made to the Particle View have not been added to the Particle Surface yet. Currently, I am not too sure what the Particle Surface is for? Maybe @Yasic can explain the use scenarios.

from particletextview.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.