Okay so i followed the steps on the wiki on how to set everything up https://bitbucket.org/MartinFelis/love- ... _-_Windows
I coded a app and used the love2d program on the app store to run my app
now i want to publish it to the play store BUT i want to use this to obviously add ads to my game.
i just dont know how to use this to do that
when i run the command
C:\Program Files (x86)\Android\android-sdk\tools>android update project -p 'C:\Users\teete\Desktop\NEWLOVEANDROID\build\google-play-services_lib'
i get the error
Error: Failed to combine working directory 'C:\Program Files (x86)\Android\android-sdk\tools' with project location ''C:\Users\teete\Desktop\NEWLOVEANDROID\build\love-android-sdl2admob'': The filename, directory name, or volume label syntax is incorrect
i have google-play-services_lib next to love-android-sdl2 with a folder named assets and my game.love inside
https://love2d.org/imgmirrur/etI51Pt.png
https://love2d.org/imgmirrur/veuiTU2.png
( love-android-sdl2 is the one i downloaded from https://bitbucket.org/master_both/love-android-sdl2 )
ive changed the AndroidManifest.xml to match my needs
im following https://bitbucket.org/MartinFelis/love- ... _Packaging > How to package the apk with your own LÖVE game
but i cant do that unless i have google-play-services_lib
if anyone who knows this stuff can help me that would be awesome im not very good with android stuff as i dont know much about it
thank you for the help! <3
Admob Banner and Interstitial Support
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Admob Banner and Interstitial Support
Put the lib into your build folder. Then modify project.properties (I think) to have a relative path to the lib. Then do android update project -p "path/to/build/folder"
It might error saying you need a target. If so then follow the little help it gives you.
It might error saying you need a target. If so then follow the little help it gives you.
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Admob Banner and Interstitial Support
Hi! I think for windows you have to run it like this:
Also I forgot that you also have to add a target flag, for this you will have to run:
and it will print something like this:
check for the [id: 2 or "android-23"] and put the number of the id on the -t flag.
Code: Select all
C:\Program Files (x86)\Android\android-sdk\tools\android.bat update project -p "PATH" -t targetid
Code: Select all
C:\Program Files (x86)\Android\android-sdk\tools\android.bat list target
Code: Select all
id: 1 or "android-19"
Name: Android 4.4.2
Type: Platform
API level: 19
Revision: 4
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a
----------
id: 2 or "android-23"
Name: Android 6.0
Type: Platform
API level: 23
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a
----------
id: 3 or "Google Inc.:Google APIs:19"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 18
Description: Android + Google APIs
Based on Android 4.4.2 (API level 19)
Libraries:
* com.android.future.usb.accessory (usb.jar)
API for USB Accessories
* com.google.android.media.effects (effects.jar)
Collection of video effects
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : default/armeabi-v7a
----------
Re: Admob Banner and Interstitial Support
Thanks for the quick reply!
I did what you said and then deployed with ant debug
following https://bitbucket.org/MartinFelis/love- ... _Packaging of course
but then i got an error
heres the entire cmd log
Idk what to do from here
thanks for any help again
c:
I did what you said and then deployed with ant debug
following https://bitbucket.org/MartinFelis/love- ... _Packaging of course
but then i got an error
Code: Select all
BUILD FAILED
C:\Users\teete\Desktop\LoveGames\ANDROIDSDK\tools\ant\build.xml:573: /../google-play-services_lib resolve to a path with no project.properties file for project C:\Users\teete\Desktop\LoveGames\apache-ant-1.9.6\bin
Code: Select all
C:\Users\teete\Desktop\LoveGames\apache-ant-1.9.6\bin>ant debug
Unable to locate tools.jar. Expected to find it in C:\Program Files (x86)\Java\jre1.8.0_66\lib\tools.jar
Buildfile: C:\Users\teete\Desktop\LoveGames\apache-ant-1.9.6\bin\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Users\teete\Desktop\LoveGames\ANDROIDSDK
-setup:
[echo] Project Name: love-android
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 23.0.2
[echo] Resolving Build Target for love-android...
[gettarget] Project Target: Android 6.0
[gettarget] API level: 23
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for love-android...
BUILD FAILED
C:\Users\teete\Desktop\LoveGames\ANDROIDSDK\tools\ant\build.xml:573: /../google-play-services_lib resolve to a path with no project.properties file for project C:\Users\teete\Desktop\LoveGames\apache-ant-1.9.6\bin
Total time: 1 second
thanks for any help again
c:
- master both
- Party member
- Posts: 262
- Joined: Tue Nov 08, 2011 12:39 am
- Location: Chile
Re: Admob Banner and Interstitial Support
Hmmm. I believe that error occurs when google-play-services_lib is not found, are you sure it is next to the project folder? Also make sure to not move the lib folder after you run android update project.
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: Admob Banner and Interstitial Support
Make sure the path in project.properties relatively points to the Google services lib. SO claimed an absolute path may not work.
Re: Admob Banner and Interstitial Support
alright now im getting stack overflow error when compiling
Who is online
Users browsing this forum: No registered users and 5 guests