Can't make StartApp ads to work - General Monetization

So I follow this tutorial: github . com/StartApp-SDK/Documentation/wiki/Android-InApp-Documentation
I follow all the steps but when I write ''StartAppSDK.init(this, "Your App ID", true);'' I get error ''symbol not found''. I'm using Android Studio. Anyone knows solution? Thanks.

-Exit Android Studio
-Back up your project
-Delete all the .iml files and the .idea folder
-Relaunch Android Studio and reimport your project
Or just use this menu entry in the file menu -- > Invalidate Caches/Restart

Related

NOOK SDK Released

Http://Bn.com/nookdeveloper
Sent from my NOOKcolor using XDA app
EDIT: Instructions
Open your CLI (cmd, terminal, bash, whatever)
Navigate to the <android-sdk> tools directory.
Execute the Android tool command with no options: $ android
In the Android SDK and AVD Manager left panel, Available Packages.
Click Add Add-On Site.
Enter the URL for the NOOKcolor add-on SDK: http://www.barnesandnoble.com/nookcolor/developer/
Click OK.
Click the check box for the URL you just entered.
Click Install Selected.
Accept the Licence Agreement and click Install.
Think this has already been posted..?
http://forum.xda-developers.com/showthread.php?t=859360
I actually didn't check the forum, I posted right after I got the email

[SOLVED][Q] Help adding Gradle based library to my non-Gradle non-Eclipse project

I'm trying to use HoloColorPicker by Lars Werkman, now I'm not using Eclipse or the Android Studio, I'm doing everything via command line and advanced text editors (that's just how I like it). Now the problem I'm running into is HoloColorPicker uses Gradle, so it doesn't have a build.xml file, giving me this error when I try to build:
Invalid file: /HOMEFOLDER/DevTools/AndroidLibs/HoloColorPicker/build.xml
I used the `android update project` command to add the library to my project, so how do I either convert the Gradle project to a standard android proect, or get it to build the library with gradle instead of build.xml???
Any help is greately apprecieated, thanks.
Well, I think I figured it out, all I had to do was open a terminal in the folder of library project and run this:
android update lib-project --path . --target 1
Afterwards it created the appropriate files that were needed and it now compiles, of course I won't know for 100% certainty until I actually use some things from the library and get it to run.
Well, I've tested it and this did fix my issue, I was able to successfully import the library.

Delete eclipse appcompat_v7 package

I accidentally deleted appcompat_v7 from package explorer, now my android projects have errors in folder values (styles.xml) and src folder. How can i fix this mistake. I tryed to import android-support-v7-mediarouter, my error from project scr gone, but i still have errors in styles.xml,and i have error too in android-support-v7-mediarouter in res/value/styles.xml . i fix a error , another one apears. Sorry for my bad english .
ImP4Kter said:
I accidentally deleted appcompat_v7 from package explorer, now my android projects have errors in folder values (styles.xml) and src folder. How can i fix this mistake. I tryed to import android-support-v7-mediarouter, my error from project scr gone, but i still have errors in styles.xml,and i have error too in android-support-v7-mediarouter in res/value/styles.xml . i fix a error , another one apears. Sorry for my bad english .
Click to expand...
Click to collapse
Add the appcompat_v7 project to your application project as a library:
In the Project Explorer, right-click your project and select Properties.
In the category panel on the left side of the dialog, select Android.
In the Library pane, click the Add button.
Select the library project and click OK. For example, the appcompat project should be listed as android-support-v7-appcompat.
In the properties window, click OK.
https://developer.android.com/tools/support-library/setup.html#libs-with-res
(ref, from http://stackoverflow.com/questions/...mpat-v7-and-now-my-android-projects-wont-work)
btw, u have to import the whole appcompat_v7 but not only android-support-v7-mediarouter, so if you didn't download whole android-support-v7 then download in sdk manager!
hope this can help your problem!

[How to]Apk Studio, decompilation - recompilation

Apk Studio, decompilation - recompilation, How to
I tried several times to work with Apk Studio, but I could not find a guide to understand exactly how it works.
Finally, one day I understood.
That's why I thought that would be a useful guide to understand others, how simple it is.
-------------------------------------------------------------------------------------------
You need:
Java Runtime Environment
Apk Studio, which you can download here
-------------------------------------------------------------------------------------------
Let's start:
Unzip Apk Studio archive
Reserve the archive, do not delete.
Note: Where you unzip the archive on PC, there you will work. If you wont to change the address on your PC for work, then unzip again the archive to new address.
-------------------------------------------------------------------------------------------
- Create a new folder on Desktop named -> Project 1
- Copy in the new folder Project 1 the file framework-res.apk of the ROM you want to mod.
View attachment 3180767
- Open Apk Studio;
- choose File -> Settings in Apk Studio;
- to Binaries you have the path to binaries, do not touch there;
- click the Add button
View attachment 3180773
- to Tag write -> framework
- to Path click and search the path to Project 1\framework-res.apk, then Open and then Install,
- cick Save
View attachment 3180780
View attachment 3180785
Now framework-res.apk it is installed.
You can install more framework from other ROM, but do not forget to change the name Tag, for that you can recognize it.
-------------------------------------------------------------------------------------------
- add file DeskClock.apk in Project 1, the file is attached below;
View attachment 3180787
View attachment DeskClock.zip
- In folder Project 1 create another folder DeskClock JB or whatever name you want to call (not strictly necessary);
View attachment 3180795
- in Apk Studio open File -> Apk;
- to Project name -> add a name "1" (for example or how do you want), it will be create a folder with this name;
Note: spaces between words are not allowed to this name;
- to Apk Path choose the path to the file DeskClock.apk;
View attachment 3180800
- to Project Location choose the path to the folder DeskClock JB - just select the folder, and click Select Folder, do not open the folder DeskClock JB;
- to Framework - selects the framework installed;
View attachment 3180801
- click Create and waits;
- in Statusbar, Apk Studio will tell you when finished.
- it was made decompilation
-------------------------------------------------------------------------------------------
1. You can work on Apk Studio or you can put in bar and open files with Notepad++
2. You can close Apk Studio and reopen leter.
-------------------------------------------------------------------------------------------
1.
- the folder "1" has been created, as we called the project;
- plus a new folder was created with the name "original", that contains files that will serve to recompile;
View attachment 3180804
View attachment 3180808
- In Apk Studio looking to change the value to the path 1/res/layout/desk_clock_time_date.xml
View attachment 3180812
- find TextView android: textSize = "106.0sp" that should be changed to 100.0sp
View attachment 3180813
- I changed the value;
View attachment 3180814
Why I changed DeskClock.apk, you can see here
- choose File -> Save, and close the file;
- under View - click Build, the Statusbar tells you what makes Apk Studio and when it is finished;
- in the folder Project 1\DeskClock JB\1 was createed a new folder named "built"
View attachment 3180816
- the folder "built" contains the file rebuilt.apk
View attachment 3180818
- rename file rebuilt.apk to DeskClock.apk
That's all.
Done!
-------------------------------------------------------------------------------------------
2.
If you have close Apk Studio to use another program for changes, like Notepad ++ when open again Apk Studio you will see that the source is not there.
- we do a test
- close Apk Studio
- delete the new folder "built", only the folder "built" with content;
- open Apk Studio
- choose File -> Open Directory
- Look for path Project 1\DeskClock JB\1\apktool.yml
- select the file apktool.yml and choose Open;
- source reappears in APK Studio;
- select 1, name folder that contains the source;
View attachment 3180819
- click Built, under View;
- Recompiled folder "built" that you deleted, is recreated and contains rebuilt.apk
- rename the .apk file
That's all.
Done!
-------------------------------------------------------------------------------------------------------------------------------
Thanks to:
vaibhavpandeyvpz for Apk Studio
-------------------------------------------------------------------------------------------------------------------------------
Think Different
"Because the people who are crazy enough to think they can change the world, are the ones who do."
Steve Jobs
Hi!
Can you upload APK Studio 10.0.0.2? For a long time only the new version is available which is unusable.

how to force install an unsigned apk?

Given that I have root and custom ROM/recovery?
There is an apk from the different ROM thus different signatures, and the phone's package installer doesn't want to install this apk, same as "adb install" command.
adb: failed to install samsung_service_mode_10.apk: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Reconciliation failed...: Reconcile failed: Package com.sec.android.app.servicemodeapp has no signatures that match those in shared user android.uid.system; ignoring!]
Click to expand...
Click to collapse
Will I brick my phone if I simply rename this .apk to .zip and flash it with TWRP?
Why not to sign the APK using the apksigner tool by yourself?
because it requires downloading thousands of megabytes of Android SDK and learning how to use it.
I would prefer a simpler way like "adb install --force", if possible.
The err msg " INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" triggered by ADB really has NOTHING to with fact whether APK is signed or not.
> dat laughing smiley
I'm glad that you have an optic fibre with unlimited 1Gbps connection at home, however some people on our planet still reside on slow Internet connections with limited traffic, and downloading
android-studio-ide-202.7486908-linux.tar.gz 950 MiB
Click to expand...
Click to collapse
with
Google Maven dependencies 2724 MB
Click to expand...
Click to collapse
will take many hours and $$$s in traffic cost.
jwoegerbauer said:
The err msg " INSTALL_FAILED_SHARED_USER_INCOMPATIBLE" triggered by ADB really has NOTHING to with fact whether APK is signed or not.
Click to expand...
Click to collapse
thanks for pointing that out! I've googled for the second part of the error - "has no signatures that match those in shared user android.uid.system" instead of the first part, and that lead me to the wrong conclusions.
So the fix was relatively simple - download apktool.jar and signapk.jar (no need to download full 3 GBs of Studio stuff), decompile the app with apktool, delete the "android.uid.system" part from the manifest file, compile app back and sign it with signapk.jar using the stock AOSP platform keys.
However in my particular case that did not work because an app requires Samsung libs absent on my device:
adb: failed to install samsung_service_mode_10_EDIT_signed.apk: Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY: Reconciliation failed...: Reconcile failed: Package com.sec.android.app.servicemodeapp requires unavailable shared library sec_platform_library; failing!]
Click to expand...
Click to collapse
P.S. few links for the future self:
apktool.jar:
Apktool - A tool for reverse engineering 3rd party, closed, binary Android apps.
Apktool - A tool for reverse engineering 3rd party, closed, binary Android apps. It can decode resources to nearly original form and rebuild them after making some modifications
ibotpeaches.github.io
signapk.jar: (NOTE: use Java 8!)
SignApk/signapk.jar at master · techexpertize/SignApk
SignApk is used to sign the apk file after repack. The easiest way ever. - SignApk/signapk.jar at master · techexpertize/SignApk
github.com
AOSP stock keys:
platform_build/shared.x509.pem at master · aosp-mirror/platform_build
Contribute to aosp-mirror/platform_build development by creating an account on GitHub.
github.com
platform_build/shared.pk8 at master · aosp-mirror/platform_build
Contribute to aosp-mirror/platform_build development by creating an account on GitHub.
github.com

Categories

Resources