問題タブ [android-annotations]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
265 参照

android - androidannotations + mopub null ポインタ例外

androidannotations + mopub を使用した人はいますか? 実行時にヌル ポインター例外が発生します。ビューが見つからないようです。ここにリストとスタックトレースがあります

設定.java

admob_preference.xml

スタックトレース

0 投票する
0 に答える
177 参照

android - dex を実行できません: 複数の dex ファイルが Android で定義されています

Dalvik 形式への変換に失敗しました: dex を実行できません: 複数の dex ファイルで Lcom/googlecode/androidannotations/annotations/AfterInject が定義されています。

ここでは、androidannotations-2.7.1 jar を使用しています。良い提案をいくつか教えてください

0 投票する
1 に答える
2456 参照

android - Android アノテーション REST セット ヘッダー

私は Android アノテーションを使用していますが、最近、Spring Rest テンプレートを使用すると EOFExceptionが発生するというバグが発見されました。これは、アノテーションを使用して修正する方法がわかりません。投稿リクエストがあります:

さて、ヘッダーを設定するにはどうすればよいですか

このリクエストに?

ありがとう!

0 投票する
3 に答える
836 参照

android - Android アノテーション REST 送信イメージ

サーバーとの通信に Android アノテーションを使用します。API呼び出しの1つで、たとえばギャラリーからテキストデータと画像を送信する必要があります。

投稿リクエストとともに画像を含む MultipartForm を添付するにはどうすればよいですか?

0 投票する
1 に答える
226 参照

android-annotations - サポートされる AndroidAnnotations の最小 API

AndroidAnnotations がサポートする最小の Android API レベルを知りたいですか? 彼らのウェブサイトには情報がありませんでした。

よろしく、 フェリックス・T

0 投票する
2 に答える
1780 参照

android - Trying to get an Android annotations spring RESTful client api working, couple of problems

I can't seem to figure out how to get android annotations rest client to work I'm having 2 main issues.

A)How to parse the generic json response and get the meaningful key

B)How to add parameters

For the first problem all responses come back as a json string fomatted like this

Where success is boolean message is a string and data is going to be the main data I want to parse that may be a boolean, an array, a string or an int

I'm pretty sure I need to intercept the response and handle the code but I'm not sure how to do that

Lets use a real response that look something like this

First in my interceptor I want to see if the boolean key "success" is true and then return the data value

The second problem is sending params with the http request that have an api key and a session key, I define the application class like this

With the AuthStore class like this

Basically I'm setting a dummy api key at the application level in a singleton, which I should be able to access in the rest interceptor interface but the code just quits without errors I'm basically following this guide https://github.com/excilys/androidannotations/wiki/Authenticated-Rest-Client

Finally I have an activity class which injects the app dependency which has refrence to the rest http class and the authstore class

Sorry if it's a lot of info, I've been searching for a while and can't figure this out!

thanks in advance