开发者

Compile Appcelerator titanium app with native Google Maps MapActivity

开发者 https://www.devze.com 2023-03-13 00:52 出处:网络
Actually, I can open a native Activity from titanium framework but, when I switch it to a MapActivity with a MapView, I get a hundred errors on references to Google Maps classes as follows:

Actually, I can open a native Activity from titanium framework but, when I switch it to a MapActivity with a MapView, I get a hundred errors on references to Google Maps classes as follows:

[ERROR] C:\Users\Administrador\My Documents\Titanium Studio Workspace\MyProject\build\android\src\com\maps\BubblesMap\view\BubblesOverlay.java:6: package com.google.android.maps does not exist
[ERROR] import com.google.android.maps.MapView;
[ERROR]                               ^
[ERROR] C:\Users\Administrador\My Docum开发者_运维技巧ents\Titanium Studio Workspace\MyProject\build\android\src\com\maps\BubblesMap\view\BubblesOverlay.java:7: package com.google.android.maps does not exist
[ERROR] import com.google.android.maps.Overlay;
[ERROR]  

                         ^
etc...

I have set the Android API to Google APIs 2.2 in the project properties window and <tool-api-level>8</tool-api-level> in tiapp.xml and <uses-library android:name="com.google.android.maps" /> in the AndroidManifest.xml on the native part.

Any ideas? Thanks


Might be due to the fact that appcelertor appa only allow for one map view in the app Ns requires that you reuse that on instance

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号