T8ET8TWE
New Member
After upgrading AppCompat to Version 4.00. I got this error!
Here is my manifest code.
B4X:
B4A Version: 9.80
Java Version: 11
Parsing code. (0.00s)
Building folders structure. (0.53s)
Compiling code. (0.10s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling generated Java code. (17.31s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACActionBar;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACActionMenuWrapper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACActionMenuWrapper$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACActionModeWrapper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACActionModeWrapper$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACCheckBoxWrapper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACEditTextWrapper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACFlatButtonWrapper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lde/amberhome/objects/appcompat/ACMenuItemWrapper;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:692)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
at com.android.dx.command.dexer.Main.runDx(Main.java:293)
at com.android.dx.command.dexer.Main.main(Main.java:249)
at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:684)
... 4 more
Here is my manifest code.
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="21"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="@style/Theme.AppCompat">
<item name="colorPrimary">#FF9800</item>
<item name="colorPrimaryDark">#F57C00</item>
<item name="colorAccent">#FFA726</item>
</style>
</resources>
)