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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -