Errors¶
Graphic¶
Scaling of sprite is incorrect or seems weird¶
Drawables are not loaded with the option inScaled=true
in conjunction
with the BitmapFactory
class.
Android specific¶
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {XXX}; have you declared this activity in your AndroidManifest.xml?¶
This error occurs when you try to start an activity but isn't declared in the AndroidManifest.xml
Solution
Put this in your AndroidManifest.xml
:
1 2 3 4 5 6 7 8 | <application ... > <activity android:name="XXX"> </activity> </application> |
Gradle¶
Wrong SDK version¶
1 2 3 | * What went wrong: Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs |
- The minSDK Version has to be 18
-
minSDKVersion of build.gradle should match with minSDKVersion of the AndroidManifest.xml
-
Add the attribut
tools:node="replace"
in your AndroidManifest.xml- Don't forget the namespace in
<manifest/>
:xmlns:tools="http://schemas.android.com/tools"
- Don't forget the namespace in
-
No resource identifier found for attribute 'layout_constraintBottom_toBottomOf' in package 'XXX'
- I was finally able to build the project after setting the compile verstion, minimum target and target version to API level 24. Afterwards I could set back the minimum version to API level 19 and the project is still compiling
- Or: put Constraint-Layout dependencies in your gradle.build file
Exception messages¶
Exception | Message | Meaning |
---|---|---|
IllegalStateException | No state defined | no state was defined yet but the drawView component and the RenderThread was started |
IllegalStateException | State is not added to the StateManager | The RenderThread was called, and a state was set as current state but was not added to the StateManager |