Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

android - Flutter build appbundle R8: Type com.bundle.id.MainActivity is defined multiple times:

When I run

flutter build appbundle

it returns with the following error

./build/app/intermediates/javac/release/classes/com/bundle/id/MainActivity.class:

R8: Type com.bundle.id.MainActivity is defined multiple times:

./build/app/intermediates/javac/release/classes/com/bundle/id/MainActivity.class,

./build/app/tmp/kotlin-classes/release/com/bundle/id/MainActivity.class FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ':app:minifyReleaseWithR8'.

com.android.tools.r8.CompilationFailedException: Compilation failed to complete

Where com.bundle.id is my app bundle

It says there are duplicate files called MainActivity. How should I fix this?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...