GithubHelp home page GithubHelp logo

Comments (17)

echokk11 avatar echokk11 commented on May 28, 2024 17

还需要把几处SliverOverlapAbsorber的child改成sliver

from flutterdouban.

LoveNewsweetheart avatar LoveNewsweetheart commented on May 28, 2024 1

我的Flutter版本是 1.21.0。不需要回退版本

from flutterdouban.

happy-sw avatar happy-sw commented on May 28, 2024 1

我怎么有好多错误啊 看不懂哭唧唧

from flutterdouban.

sinduanan avatar sinduanan commented on May 28, 2024 1
FAILURE: Build failed with an exception.

* Where:
Build file 'E:\demo_project\FlutterDouBan-master-new\android\build.gradle' line: 24

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Failed to notify project evaluation listener.
      > org.gradle.api.file.ProjectLayout.fileProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/RegularFileProperty;

升级下就可以了
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
}

from flutterdouban.

DreamTravelingLight avatar DreamTravelingLight commented on May 28, 2024

请问你Flutter版本是多少啊,需要回退版本吗

from flutterdouban.

IFMaggie avatar IFMaggie commented on May 28, 2024

解决方案里面的3 是项目里面的全部Router 都要改吗

from flutterdouban.

moyuanz avatar moyuanz commented on May 28, 2024

解决方案里面的3 是项目里面的全部Router 都要改吗
是的,全部要改

from flutterdouban.

qichangleixin avatar qichangleixin commented on May 28, 2024

1)Your app isn't using AndroidX

在gradle.properties中添加如下代码即可

android.enableJetifier=true
android.useAndroidX=true
2)GeneratedPluginRegistrant don't can not be applied

如下修改
package com.example.doubanapp;

import android.os.Bundle;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;

public class MainActivity extends FlutterActivity {
/@OverRide
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//GeneratedPluginRegistrant.registerWith(this);
}
/
}

from flutterdouban.

sinduanan avatar sinduanan commented on May 28, 2024
FAILURE: Build failed with an exception.

* Where:
Build file 'E:\demo_project\FlutterDouBan-master-new\android\build.gradle' line: 24

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Failed to notify project evaluation listener.
      > org.gradle.api.file.ProjectLayout.fileProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/RegularFileProperty;

from flutterdouban.

LangeZhao avatar LangeZhao commented on May 28, 2024

你们跑起来有数据吗,为啥我跑起来直接蹦,数据都请求不到。

from flutterdouban.

longfeihouhouhou avatar longfeihouhouhou commented on May 28, 2024
FAILURE: Build failed with an exception.

* Where:
Build file 'E:\demo_project\FlutterDouBan-master-new\android\build.gradle' line: 24

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Failed to notify project evaluation listener.
      > org.gradle.api.file.ProjectLayout.fileProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/RegularFileProperty;

build.gradle 和 gradke-wrapper.properties 中的两个版本得对应上 比如 3.5.0 =>5.6.2-all
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
}
distributionUrl=https://services.gradle.org/distributions/gradle-5.6.2-all.zip

from flutterdouban.

HelloHchen avatar HelloHchen commented on May 28, 2024

哭唧唧,起不来

from flutterdouban.

SnailYue avatar SnailYue commented on May 28, 2024

哭唧唧,起不来
按照楼上人的修改,还需要改这部分的 https://blog.csdn.net/csdn_aiyang/article/details/102835545,改完就可以跑起来了。

from flutterdouban.

mybirthfather avatar mybirthfather commented on May 28, 2024

1 下载项目后,通过AndroidStudio工具导入后,打开项目中的pubspec.yaml文件,上方有一个pub get按钮,点击pub get按钮下载所需要的依赖。

2 运行Flutter run后可能会出现无法编译的问题,这时候你可能需要更改项目中的依赖的cached_network_image和flutter_cache_manager版本号,我的是改成了如下版本:
cached_network_image: ^2.0.0-rc.1
flutter_cache_manager: 1.1.3

3 将项目中的Router改一个名字,因为项目总的Router和官方的名字一样了,冲突了

4 lib\util\palette_generator.dart 报错 修改如下
61行 class PaletteGenerator extends Diagnosticable 替换为 class PaletteGenerator with Diagnosticable
375行 class PaletteTarget extends Diagnosticable 替换为 class PaletteTarget with Diagnosticable
603行 class PaletteColor extends Diagnosticable 替换为 class PaletteColor with Diagnosticable

之后,项目就会成功的跑起来了。

按照这个编译之后胡报错cachemanager 找不到 ,删掉根目录下的.pages 重新点pub get 在编译就成了 ,还是得感谢这个大佬,另外没提到的一些错误都是需要迁移方法的,点击alt enter 自动修复的,总的来说 这个做的和安卓sdk版本兼容差很多

from flutterdouban.

ruanbaojun1105 avatar ruanbaojun1105 commented on May 28, 2024

这跑出来程序太卡了,这怎么用....

from flutterdouban.

kaina404 avatar kaina404 commented on May 28, 2024

项目已经更新到最新版本拉,可以pull并且直接运行了。卡顿可以使用Release模式运行。

from flutterdouban.

catnuko avatar catnuko commented on May 28, 2024

1 下载项目后,通过AndroidStudio工具导入后,打开项目中的pubspec.yaml文件,上方有一个pub get按钮,点击pub get按钮下载所需要的依赖。

2 运行Flutter run后可能会出现无法编译的问题,这时候你可能需要更改项目中的依赖的cached_network_image和flutter_cache_manager版本号,我的是改成了如下版本: cached_network_image: ^2.0.0-rc.1 flutter_cache_manager: 1.1.3

3 将项目中的Router改一个名字,因为项目总的Router和官方的名字一样了,冲突了

4 lib\util\palette_generator.dart 报错 修改如下 61行 class PaletteGenerator extends Diagnosticable 替换为 class PaletteGenerator with Diagnosticable 375行 class PaletteTarget extends Diagnosticable 替换为 class PaletteTarget with Diagnosticable 603行 class PaletteColor extends Diagnosticable 替换为 class PaletteColor with Diagnosticable

之后,项目就会成功的跑起来了。

第4个可以通过添加环境变量FLUTTER_STORAGE_BASE_URL来解决

from flutterdouban.

Related Issues (20)

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.