openframeworks / openframeworks/openFrameworks

How to run in the latest version of android studio

Open
#7,219 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Ask for help, thanks for reading.

I've encountered a difficult problem in the process of using ofx-android, and I don't know how to solve it.

When using the latest version of androidstudio, I found that the project created by ofx-android cannot be run.
The main reason is that the new version of androidstudio does not support gradle 3.3, and the gradle-experimental used in the project is no longer updated.
When upgrading the gradle version, other problems will suddenly appear, such as

Gradle sync failed: Exception thrown while executing model rule: BaseComponentModelPlugin.Rules#createVariantData(ModelMap<AndroidBinaryInternal>, ModelMap<AndroidComponentSpec>, TaskManager) > afterEach()

Oh I'm at a loss what to do, I also found several similar questions asked in the forum:

https://forum.openframeworks.cc/t/app-bundles-for-new-apps-in-the-play-store/39897

https://forum.openframeworks.cc/t/android-studio-complains-unsupported-version-of-gradle-when-trying-to-codesign-apk/33672/9

https://stackoverflow.com/questions/58565006/how-can-i-codesign-a-64-bit-android-apk-using-the-gradle-experimental-plugin

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with the latest Android Studio and the ofx-android project using Gradle 3.3 and gradle-experimental. Review the Android build configuration and the reported BaseComponentModelPlugin error; done means the project syncs and runs with a currently supported Android Studio setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.