小编Joh*_*Tan的帖子

无法解析配置“:classpath”的所有工件。> 无法解析 org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10

我一直在尝试解决并查找我的 gradle 文件有什么问题。我正在尝试构建我的应用程序,但我不断收到这些错误。

**
Run Code Online (Sandbox Code Playgroud)

**E:\src\flutter\bin\flutter.bat --无颜色构建 apk

 Building with sound null safety 

Running Gradle task 'assembleRelease'...                        

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10.
     Required by:
         project :
      > The consumer was configured to find a runtime of a component compatible with Java 11, packaged as a jar, and its dependencies declared externally. However we cannot choose …
Run Code Online (Sandbox Code Playgroud)

java android gradle kotlin flutter

6
推荐指数
0
解决办法
2526
查看次数

Visual Studio Code(Git:错误状态代码:500)

我正在尝试将 Flutter 代码中的更改提交到 GitHub 存储库,但此错误不断出现。

在此输入图像描述

这是 gitlog。我想将其同步到 GitHub。另外,由于此错误不断出现,如何断开本地代码与 GitHub 中存储库的连接?

    [2022-07-09T08:38:34.408Z] Log level: Info
    [2022-07-09T08:38:34.409Z] [info] Validating found git in: C:\Program Files\Git\cmd\git.exe
    [2022-07-09T08:38:34.557Z] [info] Using git 2.36.0.windows.1 from C:\Program Files\Git\cmd\git.exe
    [2022-07-09T08:38:35.008Z] > git rev-parse --show-toplevel [440ms]
    [2022-07-09T08:38:35.627Z] > git rev-parse --git-dir --git-common-dir [603ms]
    [2022-07-09T08:38:35.638Z] [info] Open repository: c:\Users\JHON MICHEAL\Downloads\grabbitapp-v1.0.9
    [2022-07-09T08:38:36.070Z] > git status -z -uall [413ms]
    [2022-07-09T08:38:36.154Z] > git fetch [506ms]
    [2022-07-09T08:38:36.284Z] > git symbolic-ref --short HEAD [210ms]
    [2022-07-09T08:38:36.518Z] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [230ms]
    [2022-07-09T08:38:36.839Z] > git for-each-ref …
Run Code Online (Sandbox Code Playgroud)

github dart visual-studio-code flutter

5
推荐指数
2
解决办法
7228
查看次数

错误:找不到构造函数“ImagePickerOptions”。ImagePickerOptions 选项 = const ImagePickerOptions()

我最近添加了来自 flutter pub dev 的插件 image_picker: ^0.8.5+3 。我将它集成到我的颤振代码中。这是代码。

此代码应该捕获图像,然后该图像将在 imgRabbitdflt1 的同一页面中使用,

import 'dart:io';
import 'controller/scan_controller.dart';
import 'package:flutter/material.dart';
import 'package:grabbitapp/core/app_export.dart';
import 'package:image_picker/image_picker.dart';

class ScanScreen extends GetWidget<ScanController> {
  File? image;

  Future pickimage() async {

    final image = await ImagePicker().pickImage(source: ImageSource.camera);
    if (image == null) return;

    final imageTemporary = File(image.path);
    setState (() => this.image = imageTemporary);
    }
  
  @override
  Widget build(BuildContext context) {
    return SafeArea(
        child: Scaffold(
            backgroundColor: ColorConstant.whiteA700,
            body: Container(
                width: size.width,
                child: SingleChildScrollView(
                    child: Container(
                        decoration:
                            BoxDecoration(color: ColorConstant.whiteA700),
                        child: Column(
                            mainAxisSize: MainAxisSize.min, …
Run Code Online (Sandbox Code Playgroud)

dart flutter

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

标签 统计

flutter ×3

dart ×2

android ×1

github ×1

gradle ×1

java ×1

kotlin ×1

visual-studio-code ×1