小编35H*_*nne的帖子

找不到符号类别的厚刀

不知怎的,我的gradle构建中有一个错误.不知怎的,我找不到奶油刀的Bind类.

这可能是由于我的傻瓜,但我不知道.

我收到此错误:

错误:(40,6)错误:找不到符号类绑定

我的成绩档案如下:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.0'

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

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile "com.android.support:appcompat-v7:${android_support_lib_version}"
    compile "com.android.support:design:${android_support_lib_version}"
    compile "com.android.support:cardview-v7:${android_support_lib_version}"

    compile 'com.github.bumptech.glide:glide:3.6.1'
    //compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.squareup.retrofit2:retrofit:2.0.0'
    compile 'com.squareup.retrofit2:converter-gson:2.0.0'

    // api
    //compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-moshi:2.3.0'
    //compile 'com.android.support:design:25.4.0'
    compile 'com.jakewharton:butterknife:8.6.0'
    compile 'com.basgeekball:awesome-validation:2.0'
    compile 'com.facebook.stetho:stetho:1.5.0'
    compile 'com.facebook.stetho:stetho-okhttp3:1.5.0' …
Run Code Online (Sandbox Code Playgroud)

android android-gradle-plugin butterknife

7
推荐指数
2
解决办法
5190
查看次数

Laravel 存储符号链接图像视图

我创建了一个符号链接来显示保存在我的视图中的存储目录中的图像。

为此我运行了这个命令:

ln -s /Users/myname/code/myApp/storage/app /Users/myname/code/myApp/public/storage

这确实在 public 中创建了一个存储文件夹,该存储文件夹包含一个名为 images 的文件夹,我想在我的视图中显示它。

我试图向他们展示这样的内容:

<img src="{{ asset('storage/app/' . $categoryValue->category_avatar) }}" />
Run Code Online (Sandbox Code Playgroud)

但图像标签仍然是空的,我收到以下错误消息:

获取 http://myapp.dev/storage/app/images/TpHsZhQBMVdihEtSwiPo6hz36l1hE2K5joFfaerB.jpeg 404(未找到

路径是正确的,但仍然不显示图像。

symlink laravel laravel-5.4

3
推荐指数
1
解决办法
4959
查看次数