Android with Groovy - where to place activity.java files that use Groovy classes -


in android have mainactivity class located in standard java src folder. i'd mainactivity class access groovy class have created. groovy class in groovy folder created under main. inorder mainactivity utilize groovy class have make sure in same package. here issue, after move mainactivity.java file groovy folder under main project cant find launcher program anymore. check manifest , guessing wrong path. can tell me can place android activities such both manifest , groovy stuff can see them ?

enter image description here

and here manifest if needed:

<?xml version="1.0" encoding="utf-8"?> 

<application     android:allowbackup="true"     android:icon="@mipmap/ic_launcher"     android:label="@string/app_name"     android:theme="@style/apptheme" >     <activity         android:name="mainactivity"         android:label="@string/app_name" >         <intent-filter>             <action android:name="android.intent.action.main" />              <category android:name="android.intent.category.launcher" />         </intent-filter>     </activity> </application> 

i able find issue. folder made called groovy not package. have create package right under , in there can place both groovy , java files. here photo of directory structure afterwards compiles fine:

enter image description here


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -