Questions tagged [android-annotations]

AndroidAnnotations is a compile time framework that helps writing simple and clean Android code that is easy to maintain.

AndroidAnnotations is a compile time framework that helps writing simple and clean Android code.

  • This tag should contain questions related to the AndroidAnnotations framework
  • This tag should not contain general java annotation related questions, or annotation processing questions
  • This tag should not contain questions related to the Android Support Annotations library

Please start by reading the wiki and the mailing list

496 questions
2
votes
1 answer

Gradle could not find manifest file

I am trying to build a project but I have the following error when I try to build it from command line: error: Could not find the AndroidManifest.xml file, going up from path…
IrApp
  • 1,823
  • 5
  • 24
  • 42
2
votes
1 answer

AndroidStudio :Cannot resolve symbol 'MainActivity'.Using AndroidAnnotations

I've decided to use AndroidAnnotations with Android Studio, I wanted to implement it through Gradle.But I got an error "Cannot resolve symbol 'MainActivity_'less...Validate resource references inside Android XML files." My Version: targetSDKversion…
2
votes
0 answers

Android Annotations + Android Studio/Gradle builds fine, but throws ClassNotFoundException at runtime

I'm struggling with moving a project from Eclipse to Android Studio and getting Android Annotations to work properly. I've used AA in various projects without too many issues, but this has me stumped. I have the usual setup in my gradle files: //…
Marky
  • 1,294
  • 1
  • 18
  • 40
2
votes
2 answers

Android Annotations not generating my classes

I use Android Annotations in some other projects too. But in this it won't generate my files. I try to migrate from Eclipse to Android Studio. I'm also updating my libraries. In Eclipse everything was working fine. Note: Resolve log file to…
2
votes
0 answers

@EViewGroup as RecycleView item

As we need use ItemView_.build(activity) to inflate item view, we can not pass parent view to Inflater and face with the problem of invalid item width, described at CardView layout_width="match_parent" does not match parent RecyclerView width Maybe…
2
votes
1 answer

Multiple dex files define Lorg/springframework/http/ContentCodingType$1

I test androidannotations framework, but have some error when I add spring-android libs. I create repo for my test project open_git_repo ! At this moment, I have in gradle console AGPBI: {"kind":"SIMPLE","text":"UNEXPECTED TOP-LEVEL…
Max Bykov
  • 53
  • 7
2
votes
3 answers

onResume for android annotations

I am using android annotations and have some code that I need to execute in the onResume() function in my activity. Is it safe to just override the onResume function from the android annotation activity (ie with @EActivity)?
MattCochrane
  • 2,900
  • 2
  • 25
  • 35
2
votes
2 answers

Android Annotations - default activity not found

I am using android annotations in Android Studio, and I keep getting the error when running (after successful build), that Default Activity is not found. It comes and goes, and sometimes it just needs a restart of Android Studio, sometimes a clean…
2
votes
2 answers

Building app with library module cannot find AndroidManifest.xml

I want to build an Android App with AndroidAnnotations. Here is a simplified version on GitHub which fails to build/pre-process: https://github.com/aiQon/androidannotationsexample The app is composed of a main app module and a library module. Both…
2
votes
0 answers

android studio settings androidannotations

I wanna enable android annotations processor in my application. I was wondering that i couldn't find Settings > Compiler > Annotation Processing in my project in android studio. If i open other projects in android studio there is a compiler item…
nAkhmedov
  • 3,522
  • 4
  • 37
  • 72
2
votes
1 answer

Android annotations @afterviews called multiple times when fragment added

I have a fragment that whenever it is added to the layout @afterviews is called. So for example in the parent activity I check if the fragment has been created, if not inflate it. Then I check if the fragment is added to the layout, if not add it…
Brian
  • 4,328
  • 13
  • 58
  • 103
2
votes
1 answer

@ViewById does not work

Here is my code Activity: @RoboGuice @EActivity(R.layout.result_page) public class ResultActivity extends SherlockListActivity implements ActionBar.OnNavigationListener{ @ViewById TextView src; @ViewById TextView dest; public void…
Prasanna
  • 2,593
  • 7
  • 39
  • 53
2
votes
0 answers

Android Annotations build fails on Android Studio 0.5.1

My build.gradle file has the following dependencies configuration: dependencies { compile 'com.android.support:appcompat-v7:+' compile 'org.androidannotations:androidannotations:3.0.+' compile…
JP Ventura
  • 5,564
  • 6
  • 52
  • 69
2
votes
1 answer

Android Annotations: Query params gets appended to url?

@Get("/ServiceTest?version=1&dateRange={dateRange}") ResponseModel getDateRangeTest(String dateRange); in RestClient interface this make the following Get http://localhost:8080/ServiceTest/2014-01-29%25202014-01-29?version=1" resulted in 400 (Bad…
Navdeep Singh
  • 699
  • 1
  • 10
  • 25
2
votes
3 answers

class not found exception with Android annotation

I have this code @EActivity(R.layout.activity_app_list) public class MainListView extends SherlockFragmentActivity { } and this is the exception android.content.ActivityNotFoundException: Unable to find explicit activity class…