Giter VIP home page Giter VIP logo

witch-android-samples's People

Contributors

sedstrom avatar simonedstromsi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

witch-android-samples's Issues

Type inference fai led: Not enough information to infer parameter T in fun <T : View!> findViewById(p0: Int): T!

dk7@DK7-PC D:\DK-HP-PA-2000AR\Laboratory\Android_Studio\Witch-Android-Samples                                                                                                                                                             
$ gradle check                                                                                                                                                            
Build cache is an incubating feature.                                                                                                                                     
e: D:\DK-HP-PA-2000AR\Laboratory\Android_Studio\Witch-Android-Samples\githubrepos\src\main\java\com\example\githubrepos\ui\SearchActivity.kt: (34, 38): Type inference failed: Not enough information to infer parameter T in fun <T : View!> findViewById(p0: Int): T!                                                                             
Please specify it explicitly.                                                                                                                                             
                                                                                                                                                                          
e: D:\DK-HP-PA-2000AR\Laboratory\Android_Studio\Witch-Android-Samples\githubrepos\src\main\java\com\example\githubrepos\ui\SearchActivity.kt: (42, 26): Type inference failed: Not enough information to infer parameter T in fun <T : View!> findViewById(p0: Int): T!                                                                             
Please specify it explicitly.                                                                                                                                             
                                                                                                                                                                          
                                                                                                                                                                          
> Task :githubrepos:compileDebugKotlin                                                                                                                                    
Using kotlin incremental compilation                                                                                                                                      
                                                                                                                                                                          
                                                                                                                                                                          
FAILURE: Build failed with an exception.                                                                                                                                  
                                                                                                                                                                          
* What went wrong:                                                                                                                                                        
Execution failed for task ':githubrepos:compileDebugKotlin'.                                                                                                              
> Compilation error. See log for more details                                                                                                                             
                                                                                                                                                                          
* Try:                                                                                                                                                                    
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.                                                            
                                                                                                                                                                          
BUILD FAILED in 5s                                                                                                                                                        
14 actionable tasks: 1 executed, 13 up-to-date        

Gradle build File...

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext.kotlin_version = '1.1.3-2'
    repositories {
        jcenter()
		google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0-alpha6'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
		google()
    }
}

ext {
    minSdkVersion = 15
    targetSdkVersion = 25
    compileSdkVersion = 26
    buildToolsVersion = '26.0.0'
    sourceCompatibilityVersion = JavaVersion.VERSION_1_8
    targetCompatibilityVersion = JavaVersion.VERSION_1_8
}

def supportLibraryVersion = '26.0.0-beta2'
def witchVersion = '0.5.2'
ext.deps = [

        // Witch
        witch           : "se.snylt:witch:$witchVersion",
        witchProcessor  : "se.snylt:witch-processor:$witchVersion",

        // Android
        supportCompat           : "com.android.support:support-compat:$supportLibraryVersion",
        supportAppCompat        : "com.android.support:appcompat-v7:$supportLibraryVersion",
        supportDesign           : "com.android.support:recyclerview-v7:$supportLibraryVersion",
        supportRecyclerView     : "com.android.support:design:$supportLibraryVersion",
        supportCardView         : "com.android.support:cardview-v7:$supportLibraryVersion",
        supportConstraintLayout : "com.android.support.constraint:constraint-layout:1.0.2",



        // Test dependencies
        junit           : 'junit:junit:4.12',
        mockitoCore     : 'org.mockito:mockito-core:2.8.47',
]


task clean(type: Delete) {
    delete rootProject.buildDir
}

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.