Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get rid of the warning: Use '$' instead of '.' for inner classes in Eclipse
    primarykey
    data
    text
    <p>I am new to Android development. After I updated my eclipse and Android SDK to the newest version, I got an warning:</p> <pre><code>Use '$' instead of '.' for inner classes (or use only lowercase letters in package names) AndroidManifest.xml </code></pre> <p>I Found some information on this <a href="https://android.googlesource.com/platform/sdk/+/7ce6049cd1d368d7cd08ac5e22f855f23b2110a7%5E1..7ce6049cd1d368d7cd08ac5e22f855f23b2110a7/" rel="noreferrer">link</a>.</p> <pre><code>"When you reference an inner class in a manifest file, you must use '$' instead of '.' " + "as the separator character, e.g. Outer$Inner instead of Outer.Inner.\n" + "\n" + "(If you get this warning for a class which is not actually an inner class, it's " + "because you are using uppercase characters in your package name, which is not " + "conventional.)" </code></pre> <p>I believe that I used uppercase characters in sub package name like <code>com.abc.app.Promotion</code>.</p> <p>The question is: What is the best way to get rid of this warning in the manifest.xml? It still can build and run but I find it so annoying.</p> <p>I tried using refactor to rename the package and modified the manifest.xml <code>android:name="com.abc.app.promotion.Promotion"</code> but got this error:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.abc.app/com.abc.app.TabView}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.abc.app/com.abc.app.promotion.Promotion}; have you declared this activity in your AndroidManifest.xml? </code></pre> <p>Thanks for helping!</p> <p>EDIT: original manifest.xml</p> <pre><code>&lt;activity android:name=".Promotion.Promotion" &gt;&lt;/activity&gt; </code></pre> <p>updated manifest.xml</p> <pre><code>&lt;activity android:name="promotion.Promotion" &gt;&lt;/activity&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload