Android Studio 3.0 Manifest Error: unknown element found

You have a misplaced tag. The new AAPT (AAPT2) now throws an error on this. From the docs in here: https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html Behavior changes when using AAPT2 To improve incremental resource processing, Android plugin 3.0.0 enables AAPT2 by default. Although AAPT2 should immediately work with older projects, this section describes some behavior changes that you should … Read more

Android – Inner element must either be a resource reference or empty

When declaring id in resources, the body should be empty <item type=”id” name=”id_name” /> For more info please have a look on below link https://developer.android.com/guide/topics/resources/more-resources#Id So as Oliver Manyasa mentioned, it should be as below <?xml version=”1.0″ encoding=”utf-8″?> <resources> <item name=”tv_deviceName” type=”id”/> </resources>

9-patch image error in Android

I have encountered with same problem on Android Studio: AAPT out(943142208) : No Delegate set : lost message:Done AAPT err(943142208): ERROR: 9-patch image /Users/cartman/Github/UteacherAndroid/RefactorDemo/app/src/main/res/drawable-xxhdpi/nav_shabow.9.png malformed. AAPT err(943142208): Frame pixels must be either solid or transparent (not intermediate alphas). AAPT err(943142208): Found at pixel #1 along left edge. This is how I resolved it: Open draw9patch … Read more