Coder Social home page Coder Social logo

Comments (23)

kuoruan avatar kuoruan commented on August 17, 2024

编译时报错吗?那你得先搞定编译

from chromium-android.

adteven avatar adteven commented on August 17, 2024

编译时正常的,也生成chromepublick.apk了,就是生成Android studio工程,然后打开工程 运行,就报错

from chromium-android.

adteven avatar adteven commented on August 17, 2024

我生成的时候就是 gn gen --args='target_os="android"' out/Default 然后开始编译 感谢作者,帮我看看怎么回事,发愁一周了

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024

你把报错信息贴出来一下?

from chromium-android.

adteven avatar adteven commented on August 17, 2024

The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

The minSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

The targetSdk version should not be declared in the android manifest file. You can move the version from the manifest to the defaultConfig in the build.gradle file.

这是第一个错误,然后我改好了,还有别 d

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024

generate_gradle.py 更新了,和我用的时候不太一样了
你别加那么多参数,先就只用

build/android/gradle/generate_gradle.py --output-directory out/Default --target //chrome/android:chrome_public_apk

from chromium-android.

adteven avatar adteven commented on August 17, 2024

使用你这个提示error: cannot find symbol class ChildBindingState 有一堆的多少

from chromium-android.

adteven avatar adteven commented on August 17, 2024

8569504我qq 我加你下,发截图跟看看,好多参数我都试过

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024

你直接把图片拉到输入框就可以上传图片

from chromium-android.

adteven avatar adteven commented on August 17, 2024

image

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024

目前,或者说截至 66 版,用 generate_gradle 生成的项目应该是不能直接从 Android Studio 跑起来了,这就是为什么我仓库里的目录结构全是自定义的。运行的时候,差什么文件,就去源码目录下查找,找到之后放到对应的包下

from chromium-android.

adteven avatar adteven commented on August 17, 2024

那以后的升级怎么做呢,还有就是怎么切换版本编译,🙏

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024

https://github.com/kuoruan/Chromium-Android/tree/master/tools
这里是我的配置文件和源码同步脚本,但是是适用于 66 的

from chromium-android.

adteven avatar adteven commented on August 17, 2024

现在我要切换到66分支。就是切换到和你一样的分支,然后我生成工程,在编译一次,然后生成工程

from chromium-android.

adteven avatar adteven commented on August 17, 2024

你这几个我都看过的

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024

我只是给个例子,你不一定非得用 66,就是你需要自己调整脚本来同步文件

from chromium-android.

adteven avatar adteven commented on August 17, 2024

我现在就想找一个能完整跑起来的版本,然后我在按照你说的那种方式去改,比如我现在编译的这个版本,直接用你的这个同步脚本,可能就不行吧

from chromium-android.

adteven avatar adteven commented on August 17, 2024

我现在想切换分支来编译,应该怎么做

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024
git fetch --depth 5 origin +refs/tags/${tag}:$tag

git checkout "$tag"

from chromium-android.

adteven avatar adteven commented on August 17, 2024

git fetch --depth 5 origin +refs/tags/66.0.3359.155:66.0.3359.155

git checkout "66.0.3359.155"

from chromium-android.

adteven avatar adteven commented on August 17, 2024

gn gen --args='target_os="android"' out/Default 这个要把你args.gn里面的命令全部手动打进去吗

from chromium-android.

kuoruan avatar kuoruan commented on August 17, 2024

输出目录下有个 args.gn 文件

from chromium-android.

adteven avatar adteven commented on August 17, 2024

我替换了这个,然后开始编译了,稍等我在用你的同步脚本试试

from chromium-android.

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.