Google DFP 在 Titanium 中找不到库
Google DFP doesn't find lib in Titanium
我想在 Appcelerator Titanium 中使用 admob。我将 google-play-services.jar
添加到 Java 模块中。
jar 路由是
/Library/android-sdk-macosx/extras/google/google_play_services/libproject/
我没有收到任何导入错误。我不明白发生了什么。
但是当我编译模块时出现这个错误:
[javac] Compiling 3 source files to /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/build/classes
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/AdmobModule.java:15: package com.google.android.gms.common does not exist
[javac] import com.google.android.gms.common.GooglePlayServicesUtil;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:16: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdListener;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:17: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdRequest;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:18: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdSize;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:19: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdView;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:20: package com.google.android.gms.ads.mediation.admob does not exist
[javac] import com.google.android.gms.ads.mediation.admob.AdMobExtras;
我拥有的图书馆:
已解决: 我直接在项目
复制 google_play_services.jar
解决了这个问题
我想在 Appcelerator Titanium 中使用 admob。我将 google-play-services.jar
添加到 Java 模块中。
jar 路由是
/Library/android-sdk-macosx/extras/google/google_play_services/libproject/
我没有收到任何导入错误。我不明白发生了什么。
但是当我编译模块时出现这个错误:
[javac] Compiling 3 source files to /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/build/classes
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/AdmobModule.java:15: package com.google.android.gms.common does not exist
[javac] import com.google.android.gms.common.GooglePlayServicesUtil;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:16: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdListener;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:17: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdRequest;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:18: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdSize;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:19: package com.google.android.gms.ads does not exist
[javac] import com.google.android.gms.ads.AdView;
[javac] ^
[javac] /Users/acavero/Documents/Titanium_Studio_Workspace/android-admob/android/src/ti/admob/View.java:20: package com.google.android.gms.ads.mediation.admob does not exist
[javac] import com.google.android.gms.ads.mediation.admob.AdMobExtras;
我拥有的图书馆:
已解决: 我直接在项目
复制google_play_services.jar
解决了这个问题